summaryrefslogblamecommitdiff
path: root/system/unzip/unzipsfx-bomb-32bit.patch
blob: f834a919b1c5ca26aa9e4ddfd08545c70398a6b1 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
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) ||