From 10fb76ff16c693584cc703d5ef8d4340400a81b4 Mon Sep 17 00:00:00 2001 From: Coty Sutherland Date: Fri, 2 Dec 2016 15:22:48 -0500 Subject: [PATCH] Adding comments around odd looking code to prevent future scrutiny --- apache2/persist_dbm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apache2/persist_dbm.c b/apache2/persist_dbm.c index 4e891cee..175a5d02 100644 --- a/apache2/persist_dbm.c +++ b/apache2/persist_dbm.c @@ -482,10 +482,12 @@ int collection_store(modsec_rec *msr, apr_table_t *col) { } } + // Allocate blob_size for keys len = var->name_len + 1; if (len >= 65536) len = 65536; blob_size += len + 2; + // Allocate blob_size for values len = var->value_len + 1; if (len >= 65536) len = 65536; blob_size += len + 2;