imgcat
imgcat copied to clipboard
A flaw of memory leak
this bug was found with afl.
proof:
================================================================= ==26325==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 7499 byte(s) in 1 object(s) allocated from:
#0 0x7f7716c54cef in operator new[](unsigned long) ../../../../libsanitizer/asan/asan_new_delete.cc:107
#1 0x54f41b in cimg_library::CImg
SUMMARY: AddressSanitizer: 7499 byte(s) leaked in 1 allocation(s).
jpeg sample file: