summaryrefslogtreecommitdiff
path: root/base/gxfill.c
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2022-04-05 16:34:45 +0100
committerRobin Watts <Robin.Watts@artifex.com>2022-04-07 18:23:27 +0100
commitdb5f053a2838f6fdb69b387e0f8ef70daca59a96 (patch)
tree5fab3faf938387708f46e8a0f740643db836410e /base/gxfill.c
parentd6f88ef54434fcfc6dcefdcfe21bab1b1b77508b (diff)
downloadghostpdl-db5f053a2838f6fdb69b387e0f8ef70daca59a96.tar.gz
Bug 705203: Fix SEGV seen in overnights with pattern cache problem.
Introduce new lock_pattern device proc and clist implementation. Call that for fill_stroke operations.
Diffstat (limited to 'base/gxfill.c')
-rw-r--r--base/gxfill.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/base/gxfill.c b/base/gxfill.c
index e33cb7787..81b5ba50c 100644
--- a/base/gxfill.c
+++ b/base/gxfill.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -670,6 +670,15 @@ gx_default_fill_path(gx_device * pdev, const gs_gstate * pgs,
return gx_general_fill_path(pdev, pgs, ppath, params, pdevc, pcpath);
}
+int
+gx_default_lock_pattern(gx_device *pdev,
+ gs_gstate *pgs,
+ gs_id pattern_id,
+ int lock)
+{
+ return gx_pattern_cache_entry_set_lock(pgs, pattern_id, lock);
+}
+
/*
* Fill/Stroke a path. This is the default implementation of the driver
* fill_path procedure.