diff options
author | Mathias Kresin <dev@kresin.me> | 2019-01-05 20:51:00 +0100 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2019-01-15 19:11:53 +0100 |
commit | ad8c2d6099a7da5192ee6e2c52a8303642271877 (patch) | |
tree | 29b3bc72d1e7448bc41636af088419eda1055339 /tools/zip/patches/008-hardening-build-fix-1.patch | |
parent | 4029788ff36a05a8731183269b675624269da84e (diff) | |
download | upstream-ad8c2d6099a7da5192ee6e2c52a8303642271877.tar.gz upstream-ad8c2d6099a7da5192ee6e2c52a8303642271877.tar.bz2 upstream-ad8c2d6099a7da5192ee6e2c52a8303642271877.zip |
tools: add zip utility
One image requires a zip compressed image, so add the zip util found in
the packages feed, and extend it with some useful debian patches.
Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'tools/zip/patches/008-hardening-build-fix-1.patch')
-rw-r--r-- | tools/zip/patches/008-hardening-build-fix-1.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/zip/patches/008-hardening-build-fix-1.patch b/tools/zip/patches/008-hardening-build-fix-1.patch new file mode 100644 index 0000000000..a0c3a91eee --- /dev/null +++ b/tools/zip/patches/008-hardening-build-fix-1.patch @@ -0,0 +1,25 @@ +From: Santiago Vila <sanvila@debian.org> +Subject: Use format specifier %s to print strings, not the string itself +Bug-Debian: http://bugs.debian.org/673476 +X-Debian-version: 3.0-5 + +--- a/zip.c ++++ b/zip.c +@@ -1028,7 +1028,7 @@ local void help_extended() + + for (i = 0; i < sizeof(text)/sizeof(char *); i++) + { +- printf(text[i]); ++ printf("%s", text[i]); + putchar('\n'); + } + #ifdef DOS +@@ -1225,7 +1225,7 @@ local void version_info() + CR_MAJORVER, CR_MINORVER, CR_BETA_VER, CR_VERSION_DATE); + for (i = 0; i < sizeof(cryptnote)/sizeof(char *); i++) + { +- printf(cryptnote[i]); ++ printf("%s", cryptnote[i]); + putchar('\n'); + } + ++i; /* crypt support means there IS at least one compilation option */ |