# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/unzip/hotfix-08-allow-greater-hostver-values.patch # Copyright (C) 2022 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License version 2 as used by the T2 SDE. # --- T2-COPYRIGHT-NOTE-END --- From: Santiago Vila Subject: zipinfo.c: Do not crash when hostver byte is >= 100 --- a/zipinfo.c +++ b/zipinfo.c @@ -2114,7 +2114,7 @@ else attribs[9] = (xattr & UNX_ISVTX)? 'T' : '-'; /* T==undefined */ - sprintf(&attribs[12], "%u.%u", hostver/10, hostver%10); + sprintf(&attribs[11], "%2u.%u", hostver/10, hostver%10); break; } /* end switch (hostnum: external attributes format) */