diff options
author | Shailesh Mistry <shailesh.mistry@hotmail.co.uk> | 2018-05-05 21:28:41 +0100 |
---|---|---|
committer | Shailesh Mistry <shailesh.mistry@hotmail.co.uk> | 2018-05-06 11:09:20 +0100 |
commit | 2b2fef0e97c148795af8c4c08b261f2807f1ba52 (patch) | |
tree | 652b82c15ff86779e0579aa20ee8ab7c77f89877 /base/gspaint.c | |
parent | 9e8ef6c2f2086adbf784ddbe71fe2799afc4002b (diff) | |
download | ghostpdl-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.c | 2 |
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; } |