forked from pool/gnuplot
Fix SIGSEGV in doc flavour
OBS-URL: https://build.opensuse.org/package/show/Publishing/gnuplot?expand=0&rev=167
This commit is contained in:
parent
ba133990ff
commit
ddb4ce4eeb
@ -20,6 +20,8 @@ Mon Jun 3 06:04:48 UTC 2024 - Dr. Werner Fink <werner@suse.de>
|
|||||||
* FIX mp: configure --with-metapost failed to include mp terminal
|
* 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 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
|
* 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 <werner@suse.de>
|
Tue Jan 9 09:24:03 UTC 2024 - Dr. Werner Fink <werner@suse.de>
|
||||||
|
19
gnuplot-doc2tex.patch
Normal file
19
gnuplot-doc2tex.patch
Normal file
@ -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<MAX_LINE_LEN && ((c=str[i]) != '`') ; i++){
|
||||||
|
+ for (i=0; i<lmax && ((c=str[i]) != '`') ; i++){
|
||||||
|
string[i] = c;
|
||||||
|
}
|
||||||
|
string[i] = NUL;
|
@ -20,6 +20,8 @@ Mon Jun 3 06:04:48 UTC 2024 - Dr. Werner Fink <werner@suse.de>
|
|||||||
* FIX mp: configure --with-metapost failed to include mp terminal
|
* 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 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
|
* 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 <werner@suse.de>
|
Tue Jan 9 09:24:03 UTC 2024 - Dr. Werner Fink <werner@suse.de>
|
||||||
|
@ -108,6 +108,7 @@ Source6: gnuplot-5.2.0-texi2info.patch
|
|||||||
Patch0: gnuplot-4.6.0.dif
|
Patch0: gnuplot-4.6.0.dif
|
||||||
Patch1: gnuplot-4.4.0-x11ovf.dif
|
Patch1: gnuplot-4.4.0-x11ovf.dif
|
||||||
Patch2: gnuplot-4.6.0-fonts.diff
|
Patch2: gnuplot-4.6.0-fonts.diff
|
||||||
|
Patch3: gnuplot-doc2tex.patch
|
||||||
Patch4: gnuplot-4.6.0-demo.diff
|
Patch4: gnuplot-4.6.0-demo.diff
|
||||||
Patch5: gnuplot-wx3.diff
|
Patch5: gnuplot-wx3.diff
|
||||||
Patch6: gnuplot-QtCore-PIC.dif
|
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
|
test $? -eq 0 || exit 1
|
||||||
cp %{_sourcedir}/picins.sty docs
|
cp %{_sourcedir}/picins.sty docs
|
||||||
%patch -P2 -p0 -b .font
|
%patch -P2 -p0 -b .font
|
||||||
|
%patch -P3 -p0 -b .overscan
|
||||||
%patch -P4 -p0 -b .demo
|
%patch -P4 -p0 -b .demo
|
||||||
%patch -P0 -p1 -b .0
|
%patch -P0 -p1 -b .0
|
||||||
%patch -P1 -p0 -b .x11ovf
|
%patch -P1 -p0 -b .x11ovf
|
||||||
|
Loading…
Reference in New Issue
Block a user