Closed bestshow closed 2 years ago
What exactly is leaked? How is this vulnerability?
Yes, malloc() returns "uninitialized" buffer, but thats ok, since we don't care what is there (it's just temp memory for writing new jpeg file image)....
You have problem with memmory, which hasn't been removed. You should call free () for "outbuffer".
on RELEASE.1.4.4
I have found a memory leak vulnerability in jpegoptim.c https://github.com/tjko/jpegoptim/blob/master/jpegoptim.c#L673 The pointer outbuffer was leaked.