graphite-nginx-module icon indicating copy to clipboard operation
graphite-nginx-module copied to clipboard

Fix heap-buffer-overflow during module configuration

Open morf opened this issue 1 year ago • 0 comments

Fix heap-buffer-overflow issue that occurs during the initialization of the http {} block. It is incorrect to call ngx_http_conf_get_module_main_conf() within create_loc_conf. This is because the ctx, where the main structures are allocated, is set after create_loc_conf() within ngx_http_block()

morf avatar Jul 05 '24 10:07 morf