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.
This pull request seeks to harden CImg against RAM exhaustions.
cimg_max_file_size
has been renamend tocimg_max_buf_size
and a check was implemented insidesafe_size
to prevent sizes that are too large. This gives the user of the lib more control over possible resource consumption. Everywheresafe_size
is used, cimg now checks if this size is within the user specified limits.