| 1 |
Descriptionscip-debian debian apg 2.2.3.dfsg.1-8 apg/patches/759477-dictionary-parsing#Description.: fix crash on dictionary starting with whitespace |
| 2 |
Forwardedscip-debian debian apg 2.2.3.dfsg.1-8 apg/patches/759477-dictionary-parsing#Forwarded.: no |
| 3 |
Authorscip-debian debian apg 2.2.3.dfsg.1-8 apg/patches/759477-dictionary-parsing#Author.: Jonathan Vollebregt <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 4 |
Last-Updatescip-debian debian apg 2.2.3.dfsg.1-8 apg/patches/759477-dictionary-parsing#Last-Update.: 2016-03-12 |
| 5 |
Bug-Debianscip-debian debian apg 2.2.3.dfsg.1-8 apg/patches/759477-dictionary-parsing#Bug-Debian.: http://bugs.debian.org/759477scip-debian-bts debian-bts . . 759477: |
| 6 |
--- a/restrict.cscip-debian debian apg 2.2.3.dfsg.1-8 apg/upstream/`restrict.c`: |
| 7 |
+++ b/restrict.cscip-debian debian apg 2.2.3.dfsg.1-8 apg/upstream/`restrict.c`: |
| 8 |
@@ -70,12 +70,10 @@ check_pass(char *pass, char *dict) |
| 9 |
while ((fgets(string, MAX_DICT_STRING_SIZE, dct) != NULL)) |
| 10 |
{ |
| 11 |
tmp = strtok (string," \t\n\0"); |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
+ if( tmp == NULL) |
| 16 |
continue; |
| 17 |
|
| 18 |
|
| 19 |
+ if(strlen(tmp) != strlen(pass)) continue; |
| 20 |
+ else if (strncmp(tmp, pass, strlen(pass)) == 0) |
| 21 |
{ |
| 22 |
free ( (void *)string); |
| 23 |
fclose (dct); |