summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Sharp <ken.sharp@artifex.com>2016-09-11 10:52:58 +0100
committerKen Sharp <ken.sharp@artifex.com>2016-09-11 10:53:24 +0100
commite25d823decd905a4917d26fe3d08a15af12eb1a6 (patch)
tree4bc4b3f9182d7ca1c074469c7ef831278a24927a
parentaa23930545649007079b17057083c1725427c558 (diff)
downloadghostpdl-e25d823decd905a4917d26fe3d08a15af12eb1a6.tar.gz
pdfwrite - another guard against a NULL clip path
commit ab3a1249ce28e3cac629ce1466d17e635ff50fab introduced a check to ensure a clip path wasn't null before using it. This caused Coverity to then check the use of that clip path throughout the function, and identify another area needing a check.
-rw-r--r--devices/vector/gdevpdte.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/devices/vector/gdevpdte.c b/devices/vector/gdevpdte.c
index db7a42a9b..f2f1ce8cf 100644
--- a/devices/vector/gdevpdte.c
+++ b/devices/vector/gdevpdte.c
@@ -713,7 +713,7 @@ pdf_process_string(pdf_text_enum_t *penum, gs_string *pstr,
finish:
/* Finally, return the total width if requested. */
- if (pdev->Eps2Write) {
+ if (pdev->Eps2Write && penum->pcpath) {
gx_device_clip cdev;
gx_drawing_color devc;
fixed x0, y0, bx2, by2;