mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-06 03:08:31 +00:00
Fix unzip warning with apelink generated symtabs
This commit is contained in:
parent
3e6d536822
commit
0c89516ac5
17 changed files with 192 additions and 59 deletions
|
@ -27,7 +27,7 @@ int64_t GetZipLfileCompressedSize(const uint8_t *z) {
|
|||
}
|
||||
const uint8_t *p = ZIP_LFILE_EXTRA(z);
|
||||
const uint8_t *pe = p + ZIP_LFILE_EXTRASIZE(z);
|
||||
for (; p < pe; p += ZIP_EXTRA_SIZE(p)) {
|
||||
for (; p + ZIP_EXTRA_SIZE(p) <= pe; p += ZIP_EXTRA_SIZE(p)) {
|
||||
if (ZIP_EXTRA_HEADERID(p) == kZipExtraZip64) {
|
||||
if (8 <= ZIP_EXTRA_CONTENTSIZE(p)) {
|
||||
return READ64LE(ZIP_EXTRA_CONTENT(p));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue