summaryrefslogtreecommitdiff
path: root/base/gspaint.c
diff options
context:
space:
mode:
authorShailesh Mistry <shailesh.mistry@hotmail.co.uk>2018-05-05 21:28:41 +0100
committerShailesh Mistry <shailesh.mistry@hotmail.co.uk>2018-05-06 11:09:20 +0100
commit2b2fef0e97c148795af8c4c08b261f2807f1ba52 (patch)
tree652b82c15ff86779e0579aa20ee8ab7c77f89877 /base/gspaint.c
parent9e8ef6c2f2086adbf784ddbe71fe2799afc4002b (diff)
downloadghostpdl-2b2fef0e97c148795af8c4c08b261f2807f1ba52.tar.gz
Bug 697545 : Prevent SEGV after fill_with_rule.
Prevent SEGV if memory allocation fails. Error created using :- MEMENTO_FAILAT=9999 ./membin/gpcl6 -sDEVICE=pbmraw -dMaxBitmap=2000 -o /dev/null ./tests_private/pcl/pcl5cfts/fts.0010
Diffstat (limited to 'base/gspaint.c')
-rw-r--r--base/gspaint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/gspaint.c b/base/gspaint.c
index be37a575b..31664afed 100644
--- a/base/gspaint.c
+++ b/base/gspaint.c
@@ -348,7 +348,7 @@ fill_with_rule(gs_gstate * pgs, int rule)
} else {
code = do_fill(pgs, rule);
if (code >= 0)
- gs_newpath(pgs);
+ code = gs_newpath(pgs);
}
return code;
}