diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-10-26 19:23:28 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-10-26 19:23:28 +0100 |
commit | adb914171df97557df9b8c373c2add2761720839 (patch) | |
tree | 5a44e1dcd83b315e4c0fc70533122ff78ed93540 /debian/patches/niash_c-array-bounds.patch | |
parent | d5af5e5b44d40be20cf0da5394ef8d5640b9eafa (diff) |
work on bugs #629470, #736451, #743848, #766340
Diffstat (limited to 'debian/patches/niash_c-array-bounds.patch')
-rw-r--r-- | debian/patches/niash_c-array-bounds.patch | 29 |
1 files changed, 29 insertions, 0 deletions
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 <debian@jff-webhosting.net> +Forwarded: <URL|no|not-needed, useless if you have a Bug field, optional> +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; |