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

Verify map exception leak fix #35

Merged
merged 2 commits into from
Sep 4, 2024
Merged

Conversation

Haliris
Copy link
Owner

@Haliris Haliris commented Sep 4, 2024

Fixed leak from textdata by calling cleanup_textures in parse_map() when verify_map() would return PANIC.
Changed cleanup_textures() from static to globally accessible from parser.h.

Fixed leak from get_textures_info() caused by panic_clean() in get_textures_util() being hardcoded to iterate over 4 buffers of the textdata struct, missing one. Changed magic index numbers in textdata struct buffers in parser.h to use proper macro for readability.

Jean Teissier added 2 commits September 4, 2024 13:31
…, added cleanup_textures() call in panic branch. Fixed panic_clean() in get_textures_utils() not properly iterating through all the indexes in textures->text_paths. Replaced magic index number in parser.h in textdata arrays with proper macro
Copy link
Collaborator

@Tsunghao-C Tsunghao-C left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay

@Tsunghao-C Tsunghao-C merged commit 1e644e3 into main Sep 4, 2024
2 checks passed
@Tsunghao-C Tsunghao-C deleted the verify_map_exception_leak_fix branch September 4, 2024 11:56
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.

2 participants