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:
parent
d8622f544f
commit
e8cf036955
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user