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