<i>Now, go find an API&#x2F;library for dealing with PNGs that allow you to pass in such a limit</i><p>The article itself links to <a href="http:&#x2F;&#x2F;libpng.sourceforge.net&#x2F;decompression_bombs.html" rel="nofollow">http:&#x2F;&#x2F;libpng.sourceforge.net&#x2F;decompression_bombs.html</a><p><i>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.</i>