Files
espeak/easpeak-fix-bufferoverflow-strncpy.patch

12 lines
403 B
Diff
Raw Permalink Normal View History

Accepting request 211295 from home:posophe:branches:Base:System - Update to version 1.47.11 + No changelog entry - Changes from 1.47.10 + Data change only. + Revert 't' sound in Spanish to version 1.47.07. - Changes from 1.47.09 + Bug fix (lookup in *_list occasionally found the wrong word). - Changes from 1.47.08 + Automatically generate character names for subscript and superscript characters. + Use internal ctype data for character codes up to U+024F. + Add API function espeak_TextToPhonemes(). + Add test language az, Azerbaijani. - Changes from 1.47.07 + Language data changes only. - Changes from 1.47.06 + Fix for systems which have 44010Hz but not 22050Hz audio. + Now runs OK in ARMv7 mode. - Changes from 1.47.05 + Bug fixes. + Phoneme definitions: add conditions prev2PhW(), next3PhW(). + Added language: ms (Malay) Command line: --voices=<directory> lists the voices in the specified subdirectory. - Changes from 1.47.03 + Bug fixes. - Changes from 1.47.01 + Added languages: - an Aragonese. - fa Farsi. - ga Irish. - lt Lithuanian. - pa Punjabi. + Many language improvements, including American English, Danish, Dutch, Portuguese, Tamil. + Command-line program. - Added -version option. - Added optional value to --ipa option. --ipa=1 adds a 'tie' character to link letters in a multi-letter phoneme name. --ipa=2 adds a zero-width joiner to link letters in a multi-letter phoneme name. - -X option now lists the names of attributes from *_list files. + Speak the names of Braille Dot characters, U+2800 to U+28FF. + Speak names of characters in some non-native alphabets. + Automatic switch to a different language for text in non-native alphabets. + Improved speaking of text from a non-native alphabet after automatically switching to a different language voice. + Break words with characters from different alphabets into separate words. + Ignore soft-hyphen (U+00AD) in text. + Klatt vioices, improved nasal vowels. + espeak-data can be compiled using a different sample rate than the default 22050Hz. eSpeak will then generate speech at that sample rate. + Change the structure of the espeak-data/voices directory to use subdirectories for europe, asia, and others. + Add suffix option 'm' to allow multiplr suffixes to be removed from a word. + Allow $text attribute when a text translation is given in a different alphabet. + Phoneme definitions. - Add NOT operator in conditions. - Add prevVowel() and nextPh2W() - Ignore UTF8-BOM sequence at the start of phoneme definition files. + espeakedit application. - Use wxWidgets 2.8 on Linux. - Use wxNotebook for prosody and vowel pages. - Add an option to compile the phoneme data at a specified sample rate (uses the 'sox' program for the conversion of WAV file data). - Add easpeak-fix-bufferoverflow-strncpy.patch; fix a bufferoverflow from dictionnary sources files OBS-URL: https://build.opensuse.org/request/show/211295 OBS-URL: https://build.opensuse.org/package/show/Base:System/espeak?expand=0&rev=17
2013-12-18 13:42:31 +00:00
--- a/src/dictionary.cpp
+++ b/src/dictionary.cpp
@@ -3533,7 +3533,7 @@
say_as = option_sayas;
option_sayas = 0; // don't speak replacement word as letter names
text[0] = 0;
- strncpy0(&text[1], word1, sizeof(text));
+ strncpy0(&text[1], word1, sizeof(text)-strlen(text)-1);
found = TranslateWord(tr, &text[1], 0, NULL, NULL);
strcpy(ph_out, word_phonemes);
option_sayas = say_as;