Although ubsan's implicit-unsigned-integer-truncation sanitizer may be
happy, this code still performs an implicit conversion from a wider
width data structure to a narrower width data structure. Rather than
masking the bits, make the conversion explicit. This keeps ubsan happy
as well as addressing a -Wconversion warning.
This change addresses comments from the post-submit review
of
|
||
|---|---|---|
| .. | ||
| include/ziparchive | ||
| testdata | ||
| .clang-format | ||
| Android.bp | ||
| entry_name_utils-inl.h | ||
| entry_name_utils_test.cc | ||
| OWNERS | ||
| unzip.cpp | ||
| zip_archive.cc | ||
| zip_archive_benchmark.cpp | ||
| zip_archive_common.h | ||
| zip_archive_private.h | ||
| zip_archive_stream_entry.cc | ||
| zip_archive_test.cc | ||
| zip_writer.cc | ||
| zip_writer_test.cc | ||