Hello community, here is the log from the commit of package espeakedit for openSUSE:Factory checked in at 2017-08-16 16:11:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/espeakedit (Old) and /work/SRC/openSUSE:Factory/.espeakedit.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "espeakedit" Wed Aug 16 16:11:13 2017 rev:6 rq:513683 version:1.48.03 Changes: -------- --- /work/SRC/openSUSE:Factory/espeakedit/espeakedit.changes 2016-07-05 09:51:35.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.espeakedit.new/espeakedit.changes 2017-08-16 16:11:15.973996204 +0200 @@ -1,0 +2,9 @@ +Tue Aug 1 10:13:06 UTC 2017 - [email protected] + +- FTBFS with GCC-7: espeakedit-gcc7-destbufferoverflow.patch + * in dictionary.cpp, it defines an array of 80 chars. + fill the 1st with zero and strncpy the following 79 + chars with a max size of 80 chars. our fix re-defines + the max size to 79 chars. + +------------------------------------------------------------------- New: ---- espeakedit-gcc7-destbufferoverflow.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ espeakedit.spec ++++++ --- /var/tmp/diff_new_pack.XxDj8e/_old 2017-08-16 16:11:18.573631298 +0200 +++ /var/tmp/diff_new_pack.XxDj8e/_new 2017-08-16 16:11:18.577630736 +0200 @@ -1,7 +1,7 @@ # # spec file for package espeakedit # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -32,6 +32,8 @@ #PATCH-FIX-UPSTREAM [email protected] - fix narrowing conversion from int to char inside {} Patch2: espeakedit-1.48.03-gcc6.patch Patch3: espeakedit-wx3.diff +#PATCH-FIX-UPSTREAM [email protected] - fix destbufferoverflow bsp check at dictionary.cpp +Patch4: espeakedit-gcc7-destbufferoverflow.patch BuildRequires: gcc-c++ BuildRequires: portaudio-devel BuildRequires: pulseaudio-devel @@ -48,6 +50,7 @@ %patch1 -p1 %patch2 -p1 %patch -P 3 -p1 +%patch4 -p1 # Build against portaudio v19 (see ReadMe) cp -f src/portaudio19.h src/portaudio.h ++++++ espeakedit-gcc7-destbufferoverflow.patch ++++++ Index: b/src/dictionary.cpp =================================================================== --- a/src/dictionary.cpp +++ b/src/dictionary.cpp @@ -3599,7 +3599,7 @@ int Lookup(Translator *tr, const char *w 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)-1); found = TranslateWord(tr, &text[1], 0, NULL, NULL); strcpy(ph_out, word_phonemes); option_sayas = say_as;
