platform_system_core/libsparse
Colin Cross 1eb743ba8b Fix static analyzer issues caught by clang
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
2016-02-01 11:19:26 -08:00
..
include/sparse Add verbose param to sparse_file_import_auto 2015-03-31 12:09:37 -07:00
Android.mk Remove USE_MINGW/CYGWIN; Whitelist windows modules 2015-09-02 17:10:35 -07:00
append2simg.c Turn off CRC checking for append2simg 2015-12-17 17:28:44 -08:00
backed_block.c libsparse: use strcmp and validate last_used pointer 2015-08-21 14:23:31 +00:00
backed_block.h libsparse: add function to resparse a file and a utility to use it 2012-07-09 22:09:37 -07:00
defs.h libsparse: deal with build warning messages 2014-02-28 08:08:01 -08:00
img2simg.c libsparse: turn on -Werror 2014-05-07 16:56:22 -07:00
output_file.c libsparse: turn on -Werror 2014-05-07 16:56:22 -07:00
output_file.h libsparse: rename symbols that conflict with libext4_utils 2012-07-09 22:09:37 -07:00
simg2img.c Fix parameter to lseek 2015-10-20 14:15:31 -07:00
simg2simg.c libsparse: add function to resparse a file and a utility to use it 2012-07-09 22:09:37 -07:00
simg_dump.py libsparse: fix crc chunk parsing in simg_dump.py 2015-04-30 16:36:17 +00:00
sparse.c libsparse: move_chunks_up_to_len() does not account skip chunks 2015-04-08 10:10:17 +02:00
sparse_crc32.c
sparse_crc32.h libsparse: Wrap sparse_crc32.h to be C++ compatible. 2015-07-11 12:48:42 -07:00
sparse_defs.h libsparse: add function to resparse a file and a utility to use it 2012-07-09 22:09:37 -07:00
sparse_err.c libsparse: add error reporting functions 2012-07-09 22:09:37 -07:00
sparse_file.h libsparse: add error reporting functions 2012-07-09 22:09:37 -07:00
sparse_format.h
sparse_read.c Fix static analyzer issues caught by clang 2016-02-01 11:19:26 -08:00