platform_system_core/libsparse
Keith Mok a3b72067de Add checking for sparse file format
Sparse file can come from an untrusted source.
Need more checking to ensure that it is not a malformed
file and would not cause any OOB read access.

Update fuzz test for decoding also.

Test: adb reboot fastboot
      fuzzy_fastboot --gtest_filter=Fuzz.Sparse*
      fuzzy_fastboot --gtest_filter=Conformance.Sparse*
      sparse_fuzzer
Bug: 212705418
Change-Id: I7622df307bb00e59faaba8bb2c67cb474cffed8e
2022-01-14 00:37:48 +00:00
..
include/sparse Add checking for sparse file format 2022-01-14 00:37:48 +00:00
.clang-format libsparse: Add .clang-format and reformat to google3 style 2018-06-13 20:32:24 +00:00
Android.bp Add checking for sparse file format 2022-01-14 00:37:48 +00:00
append2simg.cpp libsparse: Add .clang-format and reformat to google3 style 2018-06-13 20:32:24 +00:00
backed_block.cpp libsparse: Fix overflow of merged sparse chunk length 2020-08-11 08:34:28 +09:00
backed_block.h libsparse: Fix overflow of merged sparse chunk length 2020-08-11 08:34:28 +09:00
defs.h libsparse: Add .clang-format and reformat to google3 style 2018-06-13 20:32:24 +00:00
img2simg.cpp libsparse: Add .clang-format and reformat to google3 style 2018-06-13 20:32:24 +00:00
output_file.cpp Add checking for sparse file format 2022-01-14 00:37:48 +00:00
output_file.h libsparse: Fix overflow of merged sparse chunk length 2020-08-11 08:34:28 +09:00
OWNERS libsparse: add OWNERS. 2018-06-13 12:43:08 -07:00
simg2img.cpp libsparse: Add .clang-format and reformat to google3 style 2018-06-13 20:32:24 +00:00
simg2simg.cpp [libsparse] Modernize codebase by replacing NULL with nullptr 2018-07-23 23:32:01 +00:00
simg_dump.py libsparse: python3. 2021-08-17 15:02:00 -07:00
sparse.cpp libsparse: Fix overflow of merged sparse chunk length 2020-08-11 08:34:28 +09:00
sparse_crc32.cpp libsparse: Add .clang-format and reformat to google3 style 2018-06-13 20:32:24 +00:00
sparse_crc32.h libsparse: Add .clang-format and reformat to google3 style 2018-06-13 20:32:24 +00:00
sparse_defs.h libsparse: Add .clang-format and reformat to google3 style 2018-06-13 20:32:24 +00:00
sparse_err.cpp libsparse: Add .clang-format and reformat to google3 style 2018-06-13 20:32:24 +00:00
sparse_file.h libsparse: Add .clang-format and reformat to google3 style 2018-06-13 20:32:24 +00:00
sparse_format.h libsparse: Add .clang-format and reformat to google3 style 2018-06-13 20:32:24 +00:00
sparse_fuzzer.cpp Add checking for sparse file format 2022-01-14 00:37:48 +00:00
sparse_read.cpp Add checking for sparse file format 2022-01-14 00:37:48 +00:00