comparison src/stream/ngx_stream_core_module.c @ 6644:af642539cd53

Fixed regex captures handling without PCRE. If PCRE is disabled, captures were treated as normal variables in ngx_http_script_compile(), while code calculating flushes array length in ngx_http_compile_complex_value() did not account captures as variables. This could lead to write outside of the array boundary when setting last element to -1. Found with AddressSanitizer.
author Vladimir Homutov <vl@nginx.com>
date Wed, 06 Jul 2016 14:33:40 +0300
parents 070c31a482e6
children 3d5202c71f94
comparison
equal deleted inserted replaced
6643:9757cffc1e2f 6644:af642539cd53