[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[texlive-bin] 01/03: fix pdftex segfault on pdfmatch invocations



This is an automated email from the git hooks/post-receive script.

preining pushed a commit to branch master
in repository texlive-bin.

commit e9f0075ab435d281c310991607b35c0ca11eccbe
Author: Norbert Preining <preining@debian.org>
Date:   Mon Jun 6 23:45:09 2016 +0900

    fix pdftex segfault on pdfmatch invocations
---
 debian/patches/pdftex-compare-fix-crash | 23 +++++++++++++++++++++++
 debian/patches/series                   |  1 +
 2 files changed, 24 insertions(+)

diff --git a/debian/patches/pdftex-compare-fix-crash b/debian/patches/pdftex-compare-fix-crash
new file mode 100644
index 0000000..4c11f9d
--- /dev/null
+++ b/debian/patches/pdftex-compare-fix-crash
@@ -0,0 +1,23 @@
+fix a segfault in pdftex
+reported by David Carlisle on tex-live
+http://tug.org/pipermail/tex-live/2016-June/038664.html
+proposed fix by Akira Kakuto
+http://tug.org/pipermail/tex-live/2016-June/038666.html
+originally on tex.sx
+http://chat.stackexchange.com/transcript/message/30145736
+---
+ texk/web2c/pdftexdir/utils.c |    3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+--- texlive-bin.orig/texk/web2c/pdftexdir/utils.c
++++ texlive-bin/texk/web2c/pdftexdir/utils.c
+@@ -870,7 +870,8 @@
+     int size, len = 0;          /* to avoid warning about uninitialized use of len */
+ 
+     boolean found = i < sub_match_count
+-        && match_string != NULL && pmatch[i].rm_so >= 0 && i >= 0;
++        && match_string != NULL && pmatch[i].rm_so >= 0 && i >= 0
++        && pmatch[i].rm_eo >= pmatch[i].rm_so;
+ 
+     if (found) {
+         len = pmatch[i].rm_eo - pmatch[i].rm_so;
diff --git a/debian/patches/series b/debian/patches/series
index 7c96ee5..a4ddf6f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -16,3 +16,4 @@ fix-mktexlsr-bashims
 upupstream-xdvi-desktop-file
 source-date-epoch-extension
 #dvipdfmx-cidtype2-fixes
+pdftex-compare-fix-crash

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-tex/texlive-bin.git


Reply to: