]> git.kaiwu.me - nginx.git/commit
Rewrite: fixed "return" directive without response text.
authorPiotr Sikora <piotr@aviatrix.com>
Mon, 26 Feb 2024 20:00:28 +0000 (20:00 +0000)
committerPiotr Sikora <piotr@aviatrix.com>
Mon, 26 Feb 2024 20:00:28 +0000 (20:00 +0000)
commit2f9e8431e696b27ffcd69e455a1ee006ca14f8e3
treeb3ad8bb3152f5bcd6ebdd26550bacf22713926e7
parent3d5a356abb4f06b0f103290bd31a4c146233956b
Rewrite: fixed "return" directive without response text.

Previously, the response text wasn't initialized and the rewrite module
was sending response body set to NULL.

Found with UndefinedBehaviorSanitizer (pointer-overflow).

Signed-off-by: Piotr Sikora <piotr@aviatrix.com>
src/http/modules/ngx_http_rewrite_module.c