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

add global hardening against RAM exhaustions in safe_size #348

Merged
merged 1 commit into from Apr 25, 2022
Merged

add global hardening against RAM exhaustions in safe_size #348

merged 1 commit into from Apr 25, 2022

Conversation

7unn3l
Copy link

@7unn3l 7unn3l commented Apr 25, 2022

This pull request seeks to harden CImg against RAM exhaustions. cimg_max_file_size has been renamend to cimg_max_buf_size and a check was implemented inside safe_size to prevent sizes that are too large. This gives the user of the lib more control over possible resource consumption. Everywhere safe_size is used, cimg now checks if this size is within the user specified limits.

@dtschump dtschump merged commit 5801be3 into GreycLab:master Apr 25, 2022
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.

None yet

2 participants