Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix heap-buffer-overflow during module configuration #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

morf
Copy link
Contributor

@morf morf commented Jul 5, 2024

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()

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()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant