summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Johnston <ray.johnston@artifex.com>2020-09-23 07:39:04 -0700
committerRay Johnston <ray.johnston@artifex.com>2020-09-23 08:22:52 -0700
commit878ca16e0e3cc4f222d8e7bebb93a77f1e1560f5 (patch)
treedbb2170c7c4fd64e5b7a52dff81b3502ed51071d
parent972af75947497c2975067a0ff600b263067ae0c6 (diff)
downloadghostpdl-BGPrint_fixes.tar.gz
Temporarily disable BGPrint for pcl, xps and gpdl.rjj_9.53.2_testBGPrint_fixes
In order to safely allow for a 9.53.2 patch release that fixes BGPrint with NumRenderingThreads while the issues with PCL and friends are fixed, just ignore BGPrint in pcl/pl/plmain.c
-rw-r--r--pcl/pl/plmain.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/pcl/pl/plmain.c b/pcl/pl/plmain.c
index 21caf1f7b..0bf9be9f3 100644
--- a/pcl/pl/plmain.c
+++ b/pcl/pl/plmain.c
@@ -1622,6 +1622,13 @@ pl_main_set_param(pl_main_instance_t * pmi, const char *arg)
int code = 0;
gs_c_param_list *params = &pmi->params;
+ /* FIXME: For BGPrint needs fixing due to segfaults caused by the chunk */
+ /* allocator not being thread_safe. The fixes are in progress, */
+ /* but this is a hack (suggested by Chris) to allow 9.53.2 to be */
+ /* released with BGPrint least enabled for 'gs'. Bug 702921. */
+ if (strncmp(arg, "BGPrint", 7) == 0)
+ return 0; /* ignore this param for now */
+
if (eqp || (eqp = strchr(arg, '#')))
value = eqp + 1;
else {
@@ -1890,6 +1897,13 @@ pl_main_set_typed_param(pl_main_instance_t *pmi, pl_set_param_type type, const c
bool bval;
int more_to_come = type & pl_spt_more_to_come;
+ /* FIXME: For BGPrint needs fixing due to segfaults caused by the chunk */
+ /* allocator not being thread_safe. The fixes are in progress, */
+ /* but this is a hack (suggested by Chris) to allow 9.53.2 to be */
+ /* released with BGPrint least enabled for 'gs'. Bug 702921. */
+ if (strncmp(param, "BGPrint", 7) == 0)
+ return 0; /* ignore this param for now */
+
if (pmi->mid_runstring) {
dmprintf(pmi->memory, "Can't set parameters mid run_string\n");
return -1;