From: Matthias Kramm Date: Wed, 3 Feb 2010 00:08:59 +0000 (-0800) Subject: fixed segfault in AES DecryptStream X-Git-Tag: version-0-9-1~168 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=8d1cc5b5047447a44f4e9bf54f2b4d7c2fc418ec;p=swftools.git fixed segfault in AES DecryptStream --- 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]; + }