summaryrefslogtreecommitdiff
path: root/libsparse/backed_block.cpp
AgeCommit message (Collapse)Author
2020-08-11libsparse: Fix overflow of merged sparse chunk lengthHyeongseok Kim
Merging sparse chunk can make sparse map block bigger than 4GiB, that can't be covered by unsigned integer type. Fix this by changing unsigned int to uint64_t type. Test: sparse build Bug: 162808120 Change-Id: Id4d3f88f9d531c25c3937c99b2c81efb915605ee Signed-off-by: Hyeongseok Kim <hyeongseok@gmail.com> Cc: hyeongseok.kim <hyeongseok.kim@lge.com>
2018-07-23[libsparse] Modernize codebase by replacing NULL with nullptrYi Kong
Fixes -Wzero-as-null-pointer-constant warning. Test: m Bug: 68236239 Change-Id: I43dae734817cae7a260ffc7afcd85fbd4451eddf
2018-06-13libsparse: Add .clang-format and reformat to google3 styleJerry Zhang
Bug: 78793464 Test: compiles Change-Id: I8e44ba77195a12fc2bac7d4276bbc4aa95149b31
2018-06-13libsparse: Change source files to cppJerry Zhang
Bug: 78793464 Test: compiles Change-Id: Ib8b933fe3ccb8dfa49a77f7955891678bf0df086