1eb743ba8b
system/core/libsparse/sparse_read.c:260:51: warning: Dereference of null pointer (loaded from variable 'crc_ptr') ret = process_crc32_chunk(fd, chunk_data_size, *crc_ptr); system/core/libsparse/sparse_read.c:404:9: warning: Potential leak of memory pointed to by 'buf' return 0; Fixes leak in sparse_file_read_normal, and null pointer dereference crash if an image with an obsolete CRC chunk was read with CRC checking disabled. Bug: 26904425 Change-Id: Ibc72cd37602929ae2c248bea1cdd1d22ea03baaf |
||
---|---|---|
.. | ||
include/sparse | ||
Android.mk | ||
append2simg.c | ||
backed_block.c | ||
backed_block.h | ||
defs.h | ||
img2simg.c | ||
output_file.c | ||
output_file.h | ||
simg2img.c | ||
simg2simg.c | ||
simg_dump.py | ||
sparse.c | ||
sparse_crc32.c | ||
sparse_crc32.h | ||
sparse_defs.h | ||
sparse_err.c | ||
sparse_file.h | ||
sparse_format.h | ||
sparse_read.c |