[Forensics-changes] [fcrackzip] 85/93: Fix a string breakage on 64-bit big-endian.
Giovani Augusto Ferreira
giovani-guest at moszumanska.debian.org
Wed Dec 28 03:06:46 UTC 2016
This is an automated email from the git hooks/post-receive script.
giovani-guest pushed a commit to branch debian
in repository fcrackzip.
commit aa02097a564c89907649f75d4e4862bf2063f0bb
Author: Adam Borowski <kilobyte at angband.pl>
Date: Sat Aug 22 01:02:02 2015 +0200
Fix a string breakage on 64-bit big-endian.
---
debian/changelog | 1 +
debian/patches/40-fix-big-endian-format.patch | 17 +++++++++++++++++
debian/patches/series | 1 +
3 files changed, 19 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 15ad83c..694c9ec 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ fcrackzip (1.0-6) UNRELEASED; urgency=medium
* QA upload.
* Fix a buffer overflow in -p (Closes: #742463).
+ * Fix a string breakage on 64-bit big-endian.
* Standards-Version 3.9.6.
-- Adam Borowski <kilobyte at angband.pl> Sat, 15 Aug 2015 20:53:23 +0200
diff --git a/debian/patches/40-fix-big-endian-format.patch b/debian/patches/40-fix-big-endian-format.patch
new file mode 100644
index 0000000..ba875bb
--- /dev/null
+++ b/debian/patches/40-fix-big-endian-format.patch
@@ -0,0 +1,17 @@
+Description: fix a format issue on big endian
+ The warning for %d vs %ld is harmless on little-endian and on arches where
+ longs have the same length as ints (ie, 32-bit), but the results can be
+ nasty on 64-bit big-endian.
+Author: Adam Borowski <kilobyte at angband.pl>
+
+--- fcrackzip-1.0.orig/main.c
++++ fcrackzip-1.0/main.c
+@@ -427,7 +427,7 @@ usage (int ec)
+
+ printf ("methods compiled in (* = default):\n\n");
+ for (crack_method = methods; crack_method->desc; crack_method++)
+- printf ("%c%d: %s\n",
++ printf ("%c%ld: %s\n",
+ (crack_method - methods == default_method) ? '*' : ' ',
+ crack_method - methods,
+ crack_method->desc);
diff --git a/debian/patches/series b/debian/patches/series
index 6b3ce31..c0c771d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@
20-bug-430387-cannot-deal-files-with-special-chars.patch
20-readme.patch
30-buffer-overflow-on--p.patch
+40-fix-big-endian-format.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/fcrackzip.git
More information about the forensics-changes
mailing list