Skip to content

Commit 10fb76f

Browse files
csutherlFelipe Zimmerle
authored andcommitted
Adding comments around odd looking code to prevent future scrutiny
1 parent d6bd0ba commit 10fb76f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apache2/persist_dbm.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,10 +482,12 @@ int collection_store(modsec_rec *msr, apr_table_t *col) {
482482
}
483483
}
484484

485+
// Allocate blob_size for keys
485486
len = var->name_len + 1;
486487
if (len >= 65536) len = 65536;
487488
blob_size += len + 2;
488489

490+
// Allocate blob_size for values
489491
len = var->value_len + 1;
490492
if (len >= 65536) len = 65536;
491493
blob_size += len + 2;

0 commit comments

Comments
 (0)