good practices: Initialize variables before use it

Original author: Marc Stern (#1889)
This commit is contained in:
Felipe Zimmerle 2018-09-05 23:25:51 -03:00
parent 5367bca1b3
commit 8dd40709ee
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,8 @@
DD MMM YYYY - 2.9.3 - To be released DD MMM YYYY - 2.9.3 - To be released
------------------------------------ ------------------------------------
* good practices: Initialize variables before use it
[Issue #1889 - Marc Stern]
* Let body parsers observe SecRequestBodyNoFilesLimit * Let body parsers observe SecRequestBodyNoFilesLimit
[Issue #1613 - @allanbomsft] [Issue #1613 - @allanbomsft]
* potential off by one in parse_arguments * potential off by one in parse_arguments

View File

@ -405,7 +405,8 @@ char *parse_pm_content(const char *op_parm, unsigned short int op_len, msre_rule
char converted = 0; char converted = 0;
int i, x; int i, x;
unsigned char bin = 0, esc = 0, bin_offset = 0; unsigned char bin = 0, esc = 0, bin_offset = 0;
unsigned char bin_parm[3], c = 0; unsigned char c = 0;
unsigned char bin_parm[3] = { 0 };
char *processed = NULL; char *processed = NULL;
content = apr_pstrdup(rule->ruleset->mp, op_parm); content = apr_pstrdup(rule->ruleset->mp, op_parm);