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

Assorted fixes 2024/04/28 #5468

Merged
merged 3 commits into from
Apr 28, 2024
Merged

Conversation

solardiz
Copy link
Member

This fixes or works around 3 separate GitHub issues where I had proposed those changes recently. It's passed all GitHub Actions tests in my private fork.

It appears OK for dynamic_Demangle() to return a pointer to its input
string, rather than to a copy, because the only uses are:

1. In dynamic_parser.c, on pointers to config file lines, and we pre-read
the entire config file (and includes) into a linked list of separate line
structs, and we don't de-allocate those.
2. In dynamic_compiler.c: #define APP_CFUNC(N), we only pass the returned
pointer to dyna_helper_appendn(), which does not store the pointer.

Mostly fixes openwall#5465 (memory leak)
@solardiz solardiz merged commit a51fd51 into openwall:bleeding-jumbo Apr 28, 2024
31 of 32 checks passed
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