commit | a1aecbb298f31fbd74cbdfccde3b0de8e4ea2f13 | [log] [tgz] |
---|---|---|
author | Nick Kralevich <nnk@google.com> | Fri Apr 05 10:08:44 2019 -0700 |
committer | Nick Kralevich <nnk@google.com> | Fri Apr 05 10:08:44 2019 -0700 |
tree | c9a339cd6724b561ae07dc2febcb29d10743cd00 | |
parent | bccf78d3445cd9d61d0d3f4c01f97c6165cc0aa9 [diff] |
zip_writer_test.cc: fix implicit integer truncation converting from a size_t to a uint8_t results in a loss of precision, which triggers ubsan's implicit-unsigned-integer-truncation checker. Make the conversion explicit. This change allows the ziparchive-tests to pass with ubsan enabled. Test: atest ziparchive-tests Test: compiles and boots Bug: 122975762 Change-Id: I63f28b58f1ca1f4c57323494cb1f4a41e0f34fba