The official NGINX Open Source repository.
Go to file
Maxim Dounin 09268f58b4 Core: fixed ngx_pcre_studies cleanup.
If a configuration parsing fails for some reason, ngx_regex_module_init()
is not called, and ngx_pcre_studies remained set despite the fact that
the pool it was allocated from is already freed.  This might result in
a segmentation fault during runtime regular expression compilation, such
as in SSI, for example, in the single process mode, or if a worker process
died and was respawned from a master process in such an inconsistent state.

Fix is to clear ngx_pcre_studies from the pool cleanup handler (which is
anyway used to free JIT-compiled patterns).
2021-12-25 01:07:10 +03:00
auto Moved Huffman coding out of HTTP/2. 2021-12-21 07:54:16 +03:00
conf MIME: added image/avif type. 2021-10-25 20:49:15 +03:00
contrib Contrib: vim syntax, update core and 3rd party module directives. 2021-12-20 20:02:48 +02:00
docs nginx-1.21.4-RELEASE 2021-11-02 17:49:22 +03:00
misc Updated OpenSSL used for win32 builds. 2021-08-31 17:54:54 +03:00
src Core: fixed ngx_pcre_studies cleanup. 2021-12-25 01:07:10 +03:00
.hgtags release-1.21.4 tag 2021-11-02 17:49:22 +03:00