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

num_wtab[j].flags &= ~(FLAG_MULTIPLE_SPACES | FLAG_EMBEDDED); // don't use these flags for subsequent parts when splitting a number 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 // 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; pn[16] = 0;
nw = 0; nw = 0;



Loading…
Cancel
Save