Browse Source

TranslateClauseWithTerminator: Avoid unbound read of word array (#2104)

master
Samuel Thibault 5 months ago
parent
commit
a7be9c7e59
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/libespeak-ng/translate.c

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

@@ -1584,7 +1584,7 @@ void TranslateClauseWithTerminator(Translator *tr, int *tone_out, char **voice_c
num_wtab[j].flags &= ~(FLAG_MULTIPLE_SPACES | FLAG_EMBEDDED); // don't use these flags for subsequent parts when splitting a number

// include the next few characters, in case there are an ordinal indicator or other suffix
memcpy(pn, pw, 16);
strncpy(pn, pw, 16);
pn[16] = 0;
nw = 0;


Loading…
Cancel
Save