mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
Adding comments around odd looking code to prevent future scrutiny
This commit is contained in:
committed by
Felipe Zimmerle
parent
d6bd0badc5
commit
10fb76ff16
@@ -482,10 +482,12 @@ int collection_store(modsec_rec *msr, apr_table_t *col) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Allocate blob_size for keys
|
||||||
len = var->name_len + 1;
|
len = var->name_len + 1;
|
||||||
if (len >= 65536) len = 65536;
|
if (len >= 65536) len = 65536;
|
||||||
blob_size += len + 2;
|
blob_size += len + 2;
|
||||||
|
|
||||||
|
// Allocate blob_size for values
|
||||||
len = var->value_len + 1;
|
len = var->value_len + 1;
|
||||||
if (len >= 65536) len = 65536;
|
if (len >= 65536) len = 65536;
|
||||||
blob_size += len + 2;
|
blob_size += len + 2;
|
||||||
|
Reference in New Issue
Block a user