1 Description: Fix segmentation faults due to non correct checking for args
2 Author: David Suárez <david.sephirot@gmail.com>
4 Bug: https://sourceforge.net/p/giflib/bugs/153/
5 Bug-Debian: https://bugs.debian.org/715963
6 Bug-Debian: https://bugs.debian.org/715964
7 Bug-Debian: https://bugs.debian.org/715967
8 Last-Update: 2020-12-20
12 @@ -307,6 +307,12 @@ GAGetParmeters(void *Parameters[],
15 while (!(ISSPACE(CtrlStrCopy[i]))) {
17 + if ((*argv) == argv_end) {
18 + GAErrorToken = Option;
19 + return CMD_ERR_NumRead;
22 switch (CtrlStrCopy[i + 1]) {
23 case 'd': /* Get signed integers. */
24 ScanRes = sscanf(*((*argv)++), "%d",