Browse Source

TranslateRoman: avoid overflow

master
Samuel Thibault 4 months ago
parent
commit
3a04c042e6
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/libespeak-ng/numbers.c

+ 1
- 1
src/libespeak-ng/numbers.c View File

@@ -790,7 +790,7 @@ int TranslateRoman(Translator *tr, char *word, char *ph_out, char *ph_out_end, W
}

word_start = word;
while ((c = *word++) != ' ') {
while ((c = *word++) != ' ' && c) {
if ((p2 = strchr(roman_numbers, c)) == NULL)
return 0;


Loading…
Cancel
Save