From ddb4ce4eeb68a9f8ecb0878dcb5a12f9f53adecc2b84da1bf556604dc4419a71 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Mon, 3 Jun 2024 07:16:46 +0000 Subject: [PATCH] Fix SIGSEGV in doc flavour OBS-URL: https://build.opensuse.org/package/show/Publishing/gnuplot?expand=0&rev=167 --- gnuplot-doc.changes | 2 ++ gnuplot-doc2tex.patch | 19 +++++++++++++++++++ gnuplot.changes | 2 ++ gnuplot.spec | 2 ++ 4 files changed, 25 insertions(+) create mode 100644 gnuplot-doc2tex.patch diff --git a/gnuplot-doc.changes b/gnuplot-doc.changes index 7846805..404ee68 100644 --- a/gnuplot-doc.changes +++ b/gnuplot-doc.changes @@ -20,6 +20,8 @@ Mon Jun 3 06:04:48 UTC 2024 - Dr. Werner Fink * FIX mp: configure --with-metapost failed to include mp terminal * FIX qt wxt x11: "set term" from a script causes next pause to fail Bug 2703 * FIX tikz: fix use of palettes with a fixed number of colors Bug 2706 +- Add patch gnuplot-doc2tex.patch + * Avoid SIGSEGV at the end of a string due to scanning with initial line lenght ------------------------------------------------------------------- Tue Jan 9 09:24:03 UTC 2024 - Dr. Werner Fink diff --git a/gnuplot-doc2tex.patch b/gnuplot-doc2tex.patch new file mode 100644 index 0000000..62dd8aa --- /dev/null +++ b/gnuplot-doc2tex.patch @@ -0,0 +1,19 @@ +Do not scan more characters we actual have. + +--- + docs/doc2tex.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +--- docs/doc2tex.c ++++ docs/doc2tex.c 2024-06-03 07:11:02.870049141 +0000 +@@ -553,8 +553,9 @@ puttex( char *str, FILE *file) + (void) fputs("}", file); + inquote = FALSE; + } else { ++ size_t lmax = strlen(str); + (void) fputs("{\\bf ", file); +- for (i=0; i * FIX mp: configure --with-metapost failed to include mp terminal * FIX qt wxt x11: "set term" from a script causes next pause to fail Bug 2703 * FIX tikz: fix use of palettes with a fixed number of colors Bug 2706 +- Add patch gnuplot-doc2tex.patch + * Avoid SIGSEGV at the end of a string due to scanning with initial line lenght ------------------------------------------------------------------- Tue Jan 9 09:24:03 UTC 2024 - Dr. Werner Fink diff --git a/gnuplot.spec b/gnuplot.spec index 092de09..fc95e81 100644 --- a/gnuplot.spec +++ b/gnuplot.spec @@ -108,6 +108,7 @@ Source6: gnuplot-5.2.0-texi2info.patch Patch0: gnuplot-4.6.0.dif Patch1: gnuplot-4.4.0-x11ovf.dif Patch2: gnuplot-4.6.0-fonts.diff +Patch3: gnuplot-doc2tex.patch Patch4: gnuplot-4.6.0-demo.diff Patch5: gnuplot-wx3.diff Patch6: gnuplot-QtCore-PIC.dif @@ -140,6 +141,7 @@ bunzip2 -dc %{_sourcedir}/gnuplot-fr.doc.bz2 > docs/gnuplot-fr.doc test $? -eq 0 || exit 1 cp %{_sourcedir}/picins.sty docs %patch -P2 -p0 -b .font +%patch -P3 -p0 -b .overscan %patch -P4 -p0 -b .demo %patch -P0 -p1 -b .0 %patch -P1 -p0 -b .x11ovf