]> git.kaiwu.me - nginx.git/commit
Core: allow strings without null-termination in ngx_parse_url().
authorPiotr Sikora <piotrsikora@google.com>
Sat, 27 Feb 2016 01:30:27 +0000 (17:30 -0800)
committerPiotr Sikora <piotrsikora@google.com>
Sat, 27 Feb 2016 01:30:27 +0000 (17:30 -0800)
commitc3aed0a23392a509f64b740064f5f6633e8c89d8
tree7eda6be9f9564655caad621664e24f1a06b4e0f5
parent030a1f959c9c673258fe53f968fab04fc9214b86
Core: allow strings without null-termination in ngx_parse_url().

This fixes buffer over-read while using variables in the "proxy_pass",
"fastcgi_pass", "scgi_pass", and "uwsgi_pass" directives, where result
of string evaluation isn't null-terminated.

Found with MemorySanitizer.

Signed-off-by: Piotr Sikora <piotrsikora@google.com>
src/core/ngx_inet.c