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;