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

Fix wrong memory access in 68.pdf.asan.7.1030

parent 48fe18cf
......@@ -1671,6 +1671,10 @@ void Gfx::opSetStrokeColorN(Object args[], int numArgs) {
state->setStrokeColor(&color);
out->updateStrokeColor(state);
}
if (numArgs <= 0) {
error(errSyntaxError, getPos(), "Incorrect number of arguments in 'SCN' command");
return;
}
if (args[numArgs-1].isName() &&
(pattern = res->lookupPattern(args[numArgs-1].getName(), this))) {
state->setStrokePattern(pattern);
......
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