| Change 522447888 by alexsav@alexsav:fig-export-hunspellfix-1100-change-1:1102:citc on 2023/04/06 15:08:14 |
| |
| Fixes a string parsing bug causing a negative vector resize |
| |
| https://clusterfuzz.corp.google.com/testcase-detail/5537541822218240 |
| |
| PRESUBMIT=passed |
| BUG=277153931 |
| FIXED=277153931 |
| R=mghiware |
| APPROVED=mghiware |
| REQUIRED_REVIEW=1 |
| DELTA=1 (0 added, 0 deleted, 1 changed) |
| DELTA_BY_EXTENSION=cxx=1 |
| OCL=522420750 |
| FIG_CHANGESET=9667c6bc96e44f12112356b2f6e36cdda0684929 |
| FIG_WORKSPACE=alexsav/1100:hunspellfix |
| |
| Affected files ... |
| |
| ... //depot//src/hunspell/affixmgr.cxx#10 edit |
| |
| ==== //depot//src/hunspell/affixmgr.cxx#9 - /google/src/files/522447888/depot//src/hunspell/affixmgr.cxx ==== |
| --- /google/src/files/501621097/depot//src/hunspell/affixmgr.cxx 2023-01-12 14:29:52.000000000 -0500 |
| +++ /google/src/files/522447888/depot//src/hunspell/affixmgr.cxx 2023-04-06 18:08:14.000000000 -0400 |
| @@ -4281,7 +4281,7 @@ |
| case 3: { |
| np++; |
| numents = atoi(piece); |
| - if (numents == 0) { |
| + if (numents <= 0) { |
| char * err = pHMgr->encode_flag(aflag); |
| if (err) { |
| HUNSPELL_WARNING(stderr, "error: line %d: bad entry number\n", |