GNOME Bugzilla – Bug 735982
[PATCH] Fix potential allocation of huge memory amount due to type overflow in src/lodepng.cpp
Last modified: 2014-12-25 16:02:32 UTC
Created attachment 285274 [details] [review] proposed fix Please review the attached patch. It fixes coverity-scan id CID-50003. In src/lodepng.cpp the function ftell is called. In case of an error ftell returns the value -1. This return value is cached in a local variable and then it is used to allocate memory. If so, a huge amount of memory is allocated, because the -1 (int) is casted to (size_t)-max. Best regards and many thanks Martin Ettl
Thanks, I'll include the patch in the next GIT update.
This bug was previously marked ASSIGNED, which means it should be fixed in doxygen version 1.8.9. Please verify if this is indeed the case. Reopen the bug if you think it is not fixed and please include any additional information that you think can be relevant (preferrably in the form of a self-contained example).