1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

fix(lodepng): fix NULL pointer access (#3307)

Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
_VIFEXTech 2022-04-29 19:29:06 +08:00 committed by GitHub
parent d8622f544f
commit e8cf036955
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5754,7 +5754,7 @@ static unsigned preProcessScanlines(unsigned char** out, size_t* outsize, const
adam7 = (unsigned char*)lodepng_malloc(passstart[7]);
if(!adam7 && passstart[7]) error = 83; /*alloc fail*/
if(!error) {
if(!error && adam7) {
unsigned i;
Adam7_interlace(adam7, in, w, h, bpp);