Commit d0df8e54 authored by Thomas Freitag's avatar Thomas Freitag Committed by Albert Astals Cid
Browse files

Fix invalid memory access in 1106.pdf.asan.30.120.patch

parent 86b89864
......@@ -17,6 +17,7 @@
// Copyright (C) 2006 Jeff Muizelaar <jeff@infidigm.net>
// Copyright (C) 2010 Christian Feuersnger <cfeuersaenger@googlemail.com>
// Copyright (C) 2011 Andrea Canciani <ranma42@gmail.com>
// Copyright (C) 2012 Thomas Freitag <Thomas.Freitag@alfa.de>
//
// To see a description of the changes please see the Changelog file that
// came with your tarball or type make ChangeLog if you are building from git
......@@ -1010,6 +1011,10 @@ public:
return;
}
--sp;
if (sp + i + 1 >= psStackSize) {
error(errSyntaxError, -1, "Stack underflow in PostScript function");
return;
}
stack[sp] = stack[sp + 1 + i];
}
void pop()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment