mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Fix parser segfault on parser while parsing downloaded content
The error message was using a null pointer which was leading ModSecurity to segfault
This commit is contained in:
parent
23f6f6e6e6
commit
94fd570e31
@ -2621,7 +2621,6 @@ int ip_tree_from_uri(TreeRoot **rtree, char *uri,
|
||||
int line = 0;
|
||||
apr_file_t *fd;
|
||||
char *start;
|
||||
char *end;
|
||||
char buf[HUGE_STRING_LEN + 1]; // FIXME: 2013-10-29 zimmerle: dynamic?
|
||||
char errstr[1024]; //
|
||||
|
||||
@ -2752,7 +2751,7 @@ int ip_tree_from_uri(TreeRoot **rtree, char *uri,
|
||||
}
|
||||
|
||||
*error_msg = apr_psprintf(mp, "Invalid char \"%c\" in line %d " \
|
||||
"of uri %s", *end, line, uri);
|
||||
"of uri %s", word[i], line, uri);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user