Comment on Biggest image in the smallest spaceparentComments−userbinator11yNow, go find an API/library for dealing with PNGs that allow you to pass in such a limitThe article itself links to http://libpng.sourceforge.net/decompression_bombs.htmlThese new libpng versions do not impose any arbitrary limits, on the memory consumption and number of ancillary chunks, but they do allow applications to do so via the png_set_chunk_malloc_max() and png_set_chunk_cache_max() functions, respectively.−jerf11yNow, go check your bindings, too. Often binding authors consider these incidental and unimportant and don't expose them.
Comments
Now, go find an API/library for dealing with PNGs that allow you to pass in such a limit
The article itself links to http://libpng.sourceforge.net/decompression_bombs.html
These new libpng versions do not impose any arbitrary limits, on the memory consumption and number of ancillary chunks, but they do allow applications to do so via the png_set_chunk_malloc_max() and png_set_chunk_cache_max() functions, respectively.
Now, go check your bindings, too. Often binding authors consider these incidental and unimportant and don't expose them.