diff options
author | A. Wilcox <awilcox@wilcox-tech.com> | 2020-06-15 21:09:52 +0000 |
---|---|---|
committer | A. Wilcox <awilcox@wilcox-tech.com> | 2020-06-15 21:09:52 +0000 |
commit | 242b1436e37a5ac36d6571396ee52de98750ec4c (patch) | |
tree | e893f96183fa4e669870f37584ff6c704c0b83d1 /system/unzip/unzipsfx-bomb-32bit.patch | |
parent | fdeddc8e9da35c99bae08190a8476dc37ac8e9b8 (diff) | |
parent | cc8b68b5a796ff131289930ead8f4b0d0812b348 (diff) | |
download | packages-242b1436e37a5ac36d6571396ee52de98750ec4c.tar.gz packages-242b1436e37a5ac36d6571396ee52de98750ec4c.tar.bz2 packages-242b1436e37a5ac36d6571396ee52de98750ec4c.tar.xz packages-242b1436e37a5ac36d6571396ee52de98750ec4c.zip |
Merge branch 'fix/unzip' into 'master'
system/unzip: miscellaneous fixes
See merge request adelie/packages!465
Diffstat (limited to 'system/unzip/unzipsfx-bomb-32bit.patch')
-rw-r--r-- | system/unzip/unzipsfx-bomb-32bit.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/system/unzip/unzipsfx-bomb-32bit.patch b/system/unzip/unzipsfx-bomb-32bit.patch new file mode 100644 index 000000000..f834a919b --- /dev/null +++ b/system/unzip/unzipsfx-bomb-32bit.patch @@ -0,0 +1,14 @@ +Explicitly cast literal 0 to the expected bound_t type because K&R C is +awful. + +--- unzip60/extract.c 2020-06-13 22:51:33.799778287 -0500 ++++ unzip60/extract.c 2020-06-14 00:00:50.669719055 -0500 +@@ -520,7 +520,7 @@ int extract_or_test_files(__G) /* ret + return PK_MEM; + } + if ((G.extra_bytes != 0 && +- cover_add((cover_t *)G.cover, 0, G.extra_bytes) != 0) || ++ cover_add((cover_t *)G.cover, (bound_t)0, G.extra_bytes) != 0) || + (G.ecrec.have_ecr64 && + cover_add((cover_t *)G.cover, G.ecrec.ec64_start, + G.ecrec.ec64_end) != 0) || |