Hello community, here is the log from the commit of package latex2rtf for openSUSE:Factory checked in at 2016-06-07 23:47:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/latex2rtf (Old) and /work/SRC/openSUSE:Factory/.latex2rtf.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "latex2rtf" Changes: -------- --- /work/SRC/openSUSE:Factory/latex2rtf/latex2rtf.changes 2016-01-12 16:13:11.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.latex2rtf.new/latex2rtf.changes 2016-06-07 23:47:17.000000000 +0200 @@ -1,0 +2,8 @@ +Thu Jun 2 18:48:00 UTC 2016 - [email protected] + +- Add patch ` latex2rtf-fix-memory-leak.patch` to fix a memory leak + in `abbreviate` function. For more information, see: + + https://sourceforge.net/p/latex2rtf/mailman/message/35132586/ + +------------------------------------------------------------------- New: ---- latex2rtf-fix-memory-leak.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ latex2rtf.spec ++++++ --- /var/tmp/diff_new_pack.LvERAw/_old 2016-06-07 23:47:18.000000000 +0200 +++ /var/tmp/diff_new_pack.LvERAw/_new 2016-06-07 23:47:18.000000000 +0200 @@ -32,6 +32,8 @@ Patch2: fix_latex2rtf_texi.patch # PATCH-FIX-OPENSUSE texinfo5.patch [email protected] Fix building of latex2rtf using texinfo 5 Patch3: texinfo5.patch +# PATCH-FIX-UPSTREAM latex2rtf-fix-memory-leak.patch [email protected] Fix memory leak in `abbreviate` function. +Patch4: latex2rtf-fix-memory-leak.patch BuildRequires: gcc-c++ BuildRequires: m4 BuildRequires: makeinfo @@ -61,6 +63,8 @@ %patch3 -p1 %endif +%patch4 -p1 + %build make DESTDIR=%{buildroot} \ ++++++ latex2rtf-fix-memory-leak.patch ++++++ Index: latex2rtf-2.3.10/graphics.c =================================================================== --- latex2rtf-2.3.10.orig/graphics.c +++ latex2rtf-2.3.10/graphics.c @@ -1879,7 +1879,7 @@ static char * abbreviate(const char *s, if (n<len) { t =strdup(s); } else { - t = (char *) malloc(len * sizeof(char)); + t = (char *) malloc((len+1) * sizeof(char)); half = (len - 6)/2; for (i=0; i<=half; i++)
