OSDN Git Service

Use explicitly sized types in zipalign/ziptime
authorDan Willemsen <dwillemsen@google.com>
Wed, 4 Nov 2015 22:08:20 +0000 (14:08 -0800)
committerDan Willemsen <dwillemsen@google.com>
Wed, 4 Nov 2015 23:52:52 +0000 (23:52 +0000)
commit41bc424c323f86806f04acd22304d4d149bc5dbe
treec15597206f648eae65d1a3be024570b8b3b828ce
parentb18da85cb6b19f156e476cf4fb5d97f4e90ce84a
Use explicitly sized types in zipalign/ziptime

getLongLE would return a 64-bit number with the upper 32-bits set when
decoding a 32-bit number with the top bit set. Per the zip file format,
it was only expected to return a 32-bit number. Use explicitly sized
types so that we use the proper sizes and don't do any implicit
extensions.

Change-Id: I5a4304dc99ce5f8f17284d4ca3094ae115207a1e
tools/zipalign/ZipEntry.cpp
tools/zipalign/ZipEntry.h
tools/zipalign/ZipFile.cpp
tools/zipalign/ZipFile.h
tools/ziptime/ZipEntry.cpp
tools/ziptime/ZipEntry.h
tools/ziptime/ZipFile.cpp
tools/ziptime/ZipFile.h