Browse Source

address buffer overrun when dict listx file has no trailling newline

See ar_listx as an example.
master
Reef Turner 8 years ago
parent
commit
0994206f71
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/libespeak-ng/compiledict.c

+ 2
- 2
src/libespeak-ng/compiledict.c View File



step = LINE_PARSER_WORD; step = LINE_PARSER_WORD;


c = 0;
while (c != '\n') {
c = *p;
while (c != '\n' && c != '\0') {
c = *p; c = *p;


if ((c == '?') && (step == 0)) { if ((c == '?') && (step == 0)) {

Loading…
Cancel
Save