Browse Source

Fix use-of-uninitialized-value (#1942)

84e967c0a2 ("Update translate.c") (sic) dropped the initialization of
number_buf, breaking the CI on ubuntu amd64 clang+msan, ubuntu
amd64/i386 gcc/clang+valgrind,

While this probably deserves cleaning up, we'd rather not break the CI,
to be able to properly track regressions.
master
Samuel Thibault 11 months ago
parent
commit
3a403535ce
No account linked to committer's email address
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/libespeak-ng/translate.c

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

@@ -1607,6 +1607,7 @@ void TranslateClauseWithTerminator(Translator *tr, int *tone_out, char **voice_c
if (dict_flags & FLAG_SPELLWORD) {
// redo the word, speaking single letters
for (pw = word; *pw != ' ';) {
memset(number_buf, 0, sizeof(number_buf));
memset(number_buf, ' ', 9);
nx = utf8_in(&c_temp, pw);
memcpy(&number_buf[2], pw, nx);

Loading…
Cancel
Save