You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SECURITY] Avoid free'ing a wild pointer on PNG decode
In certain cases, a PNG could be fed into `load_png` which would act as
a DoS vector.
I fixed this in two ways:
* making sure `rows` is instantiated to NULL and checking if it's NULL
before freeing it;
* the minimum length of PNG data is known to be 67 bytes. So, if it's
less, we know we can error out.
Resolves CVE-2020-11721.
Closes saitoha/libpixel#134.
Closes#9.
0 commit comments