1 --- unzip60/process.c.orig 2009-03-05 23:25:10.000000000 -0200
2 +++ unzip60/process.c 2017-05-18 14:47:34.000000000 -0300
6 #ifdef IZ_HAVE_UXUIDGID
7 - if (eb_len >= EB_UX3_MINLEN
9 - && (*((EB_HEADSIZE + 0) + ef_buf) == 1)
10 + if ((eb_len >= EB_UX3_MINLEN)
11 + && (z_uidgid != NULL)
12 + && ((*((EB_HEADSIZE + 0) + ef_buf) == 1)))
13 /* only know about version 1 */
16 @@ -2909,10 +2909,10 @@
17 flags &= ~0x0ff; /* ignore any previous UNIX field */
19 if ( read_ux3_value((EB_HEADSIZE + 2) + ef_buf,
20 - uid_size, z_uidgid[0])
21 + uid_size, &z_uidgid[0])
23 read_ux3_value((EB_HEADSIZE + uid_size + 3) + ef_buf,
24 - gid_size, z_uidgid[1]) )
25 + gid_size, &z_uidgid[1]) )
27 flags |= EB_UX2_VALID; /* signal success */