https://issues.apache.org/bugzilla/show_bug.cgi?id=50994
Summary: NULL pointer dereference with "RewriteMap foo
int:undefined"
Product: Apache httpd-2
Version: 2.3-HEAD
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: mod_rewrite
AssignedTo: [email protected]
ReportedBy: [email protected]
Quoting the commit log:
"Fix NULL pointer dereference in mod_rewrite.
Example config that triggers this behaviour.
# RewriteEngine is off here
RewriteMap crash int:crash
<Location /crashme>
RewriteEngine on
RewriteRule (.+) ${crash:$1}
</Location>
The RewriteMap directive must check the validity of its arguments
regardless of the value of RewriteEngine at the time of processing."
This bug exists in HEAD and (at least) Apache 2.2.14.
Color diff and patch:
https://github.com/bnoordhuis/httpd/compare/mod_rewrite-rewritemap-segfault
https://github.com/bnoordhuis/httpd/compare/mod_rewrite-rewritemap-segfault.patch
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]