From 9f01cda55d519406248fc095667442575b7329f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Thu, 4 Dec 2014 19:57:41 +0100 Subject: Many work to make DebSrc3 fit --- debian/patches/100_xscanimage_c-out-of-bounds.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 debian/patches/100_xscanimage_c-out-of-bounds.patch (limited to 'debian/patches/100_xscanimage_c-out-of-bounds.patch') diff --git a/debian/patches/100_xscanimage_c-out-of-bounds.patch b/debian/patches/100_xscanimage_c-out-of-bounds.patch new file mode 100644 index 0000000..2249f5a --- /dev/null +++ b/debian/patches/100_xscanimage_c-out-of-bounds.patch @@ -0,0 +1,18 @@ +Description: Correct out-of-bounds +Author: Jörg Frings-Fürst +Last-Update: 2014-12-03 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: trunk/src/xscanimage.c +=================================================================== +--- trunk.orig/src/xscanimage.c ++++ trunk/src/xscanimage.c +@@ -1284,7 +1284,7 @@ scan_dialog (GtkWidget * widget, gpointe + { /* We are running in standalone mode */ + /* test for pnm formats */ + strncpy (testfilename, preferences.filename, sizeof (testfilename)); +- testfilename[sizeof (testfilename)] = 0; ++ testfilename[sizeof (testfilename) - 1] = 0; + g_strreverse (testfilename); + if (!((!strncmp (testfilename, "mnp.", 4)) || + (!strncmp (testfilename, "mgp.", 4)) || -- cgit v1.2.3