From 8d1cc5b5047447a44f4e9bf54f2b4d7c2fc418ec Mon Sep 17 00:00:00 2001 From: Matthias Kramm Date: Tue, 2 Feb 2010 16:08:59 -0800 Subject: [PATCH] fixed segfault in AES DecryptStream --- lib/pdf/xpdf-changes.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/pdf/xpdf-changes.patch b/lib/pdf/xpdf-changes.patch index 78a2786..0db8a51 100644 --- a/lib/pdf/xpdf-changes.patch +++ b/lib/pdf/xpdf-changes.patch @@ -1126,3 +1126,13 @@ diff -u -r1.5 -r1.6 if (!strcmp(tok3, "[")) { i = 0; while (pst->getToken(tok1, sizeof(tok1), &n1) && +--- xpdf/Decrypt.cc.orig 2010-01-28 14:19:51.000000000 -0800 ++++ xpdf/Decrypt.cc 2010-02-02 16:04:53.000000000 -0800 +@@ -596,6 +596,7 @@ + s->bufIdx = 0; + if (last) { + n = s->buf[15]; ++ if(!n || n>16) n=16; + for (i = 15; i >= n; --i) { + s->buf[i] = s->buf[i-n]; + } -- 1.7.10.4