From adb914171df97557df9b8c373c2add2761720839 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 26 Oct 2014 19:23:28 +0100 Subject: work on bugs #629470, #736451, #743848, #766340 --- debian/patches/hp3900.patch | 20 ++++++++++++++++++++ debian/patches/niash_c-array-bounds.patch | 29 +++++++++++++++++++++++++++++ debian/patches/series | 3 +++ debian/patches/typo.patch | 20 ++++++++++++++++++++ 4 files changed, 72 insertions(+) create mode 100644 debian/patches/hp3900.patch create mode 100644 debian/patches/niash_c-array-bounds.patch create mode 100644 debian/patches/typo.patch (limited to 'debian/patches') diff --git a/debian/patches/hp3900.patch b/debian/patches/hp3900.patch new file mode 100644 index 0000000..9504685 --- /dev/null +++ b/debian/patches/hp3900.patch @@ -0,0 +1,20 @@ +Description: Replace the startup gamma with the same from the standalone version +Author: Jörg Frings-Fürst +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=629470 +Forwarded: +Last-Update: 2014-10-26 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: trunk/backend/hp3900_sane.c +=================================================================== +--- trunk.orig/backend/hp3900_sane.c ++++ trunk/backend/hp3900_sane.c +@@ -1159,7 +1159,7 @@ options_init (TScanner * scanner) + TOptionValue *pVal; + + /* set gamma */ +- gamma_create (scanner, 2.2); ++ gamma_create (scanner, 1.0); + + /* color convertion */ + scanner->cnv.colormode = -1; diff --git a/debian/patches/niash_c-array-bounds.patch b/debian/patches/niash_c-array-bounds.patch new file mode 100644 index 0000000..b7a2114 --- /dev/null +++ b/debian/patches/niash_c-array-bounds.patch @@ -0,0 +1,29 @@ +Description: prevent array bounds in TScanner +Author: Jörg Frings-Fürst +Forwarded: +Last-Update: 2014-10-26 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: trunk/backend/niash.c +=================================================================== +--- trunk.orig/backend/niash.c ++++ trunk/backend/niash.c +@@ -64,6 +64,7 @@ + + + /* options enumerator */ ++/* on changes please check the typedef struct TScanner */ + typedef enum + { + optCount = 0, +@@ -105,8 +106,8 @@ typedef union + + typedef struct + { +- SANE_Option_Descriptor aOptions[optLast]; +- TOptionValue aValues[optLast]; ++ SANE_Option_Descriptor aOptions[optGamma + 1]; ++ TOptionValue aValues[optGamma + 1]; + + TScanParams ScanParams; + THWParams HWParams; diff --git a/debian/patches/series b/debian/patches/series index c92ae6a..4152836 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,6 @@ +niash_c-array-bounds.patch +hp3900.patch +typo.patch license_typo.patch man_typo.patch dll_backend_conf.patch diff --git a/debian/patches/typo.patch b/debian/patches/typo.patch new file mode 100644 index 0000000..5201917 --- /dev/null +++ b/debian/patches/typo.patch @@ -0,0 +1,20 @@ +Description: typo in backend/genesys.conf.in +Author: Jörg Frings-Fürst +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=743848 +Forwarded: +Last-Update: 2014-10-26 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: trunk/backend/genesys.conf.in +=================================================================== +--- trunk.orig/backend/genesys.conf.in ++++ trunk/backend/genesys.conf.in +@@ -2,7 +2,7 @@ + + # + # scanners that are not yet supported +-# uncomment them only for developpment purpose ++# uncomment them only for development purpose + # + + # UMAX Astra 4500 and Avision iVina 1600 -- cgit v1.2.3