summaryrefslogtreecommitdiff
path: root/debian/patches/0150-Fix_crash.patch
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2021-05-27 16:44:32 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2021-05-27 16:44:32 +0200
commitf69915f8b9c9574220aa78f6223a672c8be424b0 (patch)
tree33780b84ac90f6cb8cdf6b78c4d3e3d98332069e /debian/patches/0150-Fix_crash.patch
parent434575706930a762d7cb26e26cc26b140b453f65 (diff)
parentbe412ebbf9cd697451a73a3cef071aa7d27a8eac (diff)
Merge branch 'release/debian/3.3-2'debian/3.3-2
Diffstat (limited to 'debian/patches/0150-Fix_crash.patch')
-rw-r--r--debian/patches/0150-Fix_crash.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/debian/patches/0150-Fix_crash.patch b/debian/patches/0150-Fix_crash.patch
new file mode 100644
index 0000000..c6c5af7
--- /dev/null
+++ b/debian/patches/0150-Fix_crash.patch
@@ -0,0 +1,21 @@
+Description: Fix crash with -u option
+Origin: upstream, http://git.savannah.gnu.org/cgit/dmidecode.git/commit/?id=11e134e54d15e67a64c39a623f492a28df922517
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=987033
+Last-Update: 2021-05-07
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/dmidecode.c
+===================================================================
+--- trunk.orig/dmidecode.c
++++ trunk/dmidecode.c
+@@ -248,9 +248,9 @@ static void dmi_dump(const struct dmi_he
+ {
+ int j, l = strlen(s) + 1;
+
+- off = 0;
+ for (row = 0; row < ((l - 1) >> 4) + 1; row++)
+ {
++ off = 0;
+ for (j = 0; j < 16 && j < l - (row << 4); j++)
+ off += sprintf(raw_data + off,
+ j ? " %02X" : "%02X",