aspell/aspell-strict-aliasing.patch
Petr Gajdos 292247cb65 - security update
- modified patches
  % aspell-quotes.patch (p1)
  % aspell-strict-aliasing.patch (p1)
- added patches
  fix CVE-2019-25051 [bsc#1188576], heap-buffer-overflow in acommon:ObjStack:dup_top
  + aspell-CVE-2019-25051.patch

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/aspell?expand=0&rev=45
2021-08-02 14:35:11 +00:00

23 lines
668 B
Diff

--- a/modules/speller/default/writable.cpp
+++ b/modules/speller/default/writable.cpp
@@ -672,7 +672,7 @@
static void repl_next(WordEntry * w)
{
- const Str * & i = (const Str * &)(w->intr[0]);
+ const Str * i = (const Str * )(w->intr[0]);
const Str * end = (const Str * )(w->intr[1]);
set_word(*w, *i);
++i;
--- a/modules/speller/default/writable.cpp
+++ b/modules/speller/default/writable.cpp
@@ -246,7 +246,7 @@
static void soundslike_next(WordEntry * w)
{
- const Str * & i = (const Str * &)(w->intr[0]);
+ const Str * i = (const Str * )(w->intr[0]);
const Str * end = (const Str * )(w->intr[1]);
set_word(*w, *i);
++i;