Package: release.debian.org Severity: normal User: release.debian.org@packages.debian.org Usertags: unblock Please unblock package wp2latex (Please provide enough (but not too much) information to help the release team to judge the request efficiently. E.g. by filling in the sections below.) [ Reason ] The new Debian version contains a small fix to fix EPS file generation for a few corner cases. [ Impact ] If the new version is not unblocked, some EPS files (generated by wp2latex) will be syntactically incorrect and will not be processed by ghostscript. This will make some converted documents unusable. [ Tests ] Upstream provided a test file, which can't be converted into valid EPS code using the old version, but works fine for the new version. [ Risks ] Rather trivial code change to prefix curly braces properly. [ Checklist ] [X] all changes are documented in the d/changelog [X] I reviewed all changes and I approve them [X] attach debdiff against the package in testing [ Other info ] (Anything else the release team should know.) unblock wp2latex/3.94+ds-2 -- sigmentation fault
diff -Nru wp2latex-3.94+ds/debian/changelog wp2latex-3.94+ds/debian/changelog
--- wp2latex-3.94+ds/debian/changelog 2021-02-14 23:32:46.000000000 +0100
+++ wp2latex-3.94+ds/debian/changelog 2021-03-18 21:28:50.000000000 +0100
@@ -1,3 +1,10 @@
+wp2latex (3.94+ds-2) unstable; urgency=medium
+
+ * Fix a nasty bug, which could lead to invalid eps files. Got
+ notification and patch from upstream. Thanks Jaroslav Fojtik!
+
+ -- Hilmar Preusse <hille42@web.de> Thu, 18 Mar 2021 21:28:50 +0100
+
wp2latex (3.94+ds-1) unstable; urgency=medium
* New upstream release, remove merged patches.
diff -Nru wp2latex-3.94+ds/debian/patches/invalid_eps_files wp2latex-3.94+ds/debian/patches/invalid_eps_files
--- wp2latex-3.94+ds/debian/patches/invalid_eps_files 1970-01-01 01:00:00.000000000 +0100
+++ wp2latex-3.94+ds/debian/patches/invalid_eps_files 2021-03-18 21:26:24.000000000 +0100
@@ -0,0 +1,26 @@
+Description: Fix nasty bug leading to invalid eps files.
+Origin: Jaroslav Fojtik <Jafojtik@yandex.com>
+Forwarded: Patch is from upstream, not needed.
+Author: Jaroslav Fojtik <Jafojtik@yandex.com>
+Last-Update: 20210318
+
+Index: wp2latex.git/sources.cc/images/vecimage.cc
+===================================================================
+--- wp2latex.git.orig/sources.cc/images/vecimage.cc 2021-03-18 13:20:12.699391018 +0100
++++ wp2latex.git/sources.cc/images/vecimage.cc 2021-03-18 13:20:12.691391041 +0100
+@@ -1068,9 +1068,12 @@
+ {
+ if(str[len-2]=='(' && str[len-1]==')')
+ {
+- if(len>=3 && str[len-3]==' ') len--; //Remove orphaned space.
+- str = copy(str,0,len-2);
+- return;
++ if(len>=3 && str[len-3]!='\\') // Is the curly brace preffixed?
++ {
++ if(len>=3 && str[len-3]==' ') len--; //Remove orphaned space.
++ str = copy(str,0,len-2);
++ return;
++ }
+ }
+ }
+ str += "\nshow";
diff -Nru wp2latex-3.94+ds/debian/patches/series wp2latex-3.94+ds/debian/patches/series
--- wp2latex-3.94+ds/debian/patches/series 2021-02-14 22:40:59.000000000 +0100
+++ wp2latex-3.94+ds/debian/patches/series 2021-03-18 13:20:07.000000000 +0100
@@ -5,3 +5,4 @@
#fix_groff-errors
#vecimage.cc_crash
#de.po_typo_adaption
+invalid_eps_files
Attachment:
signature.asc
Description: PGP signature