File CVE-2023-43115.patch of Package ghostscript-mini

--- devices/gdevijs.c.orig	2020-03-19 09:21:42.000000000 +0100
+++ devices/gdevijs.c	2023-09-19 11:48:54.658923794 +0200
@@ -934,6 +934,9 @@ gsijs_finish_copydevice(gx_device *dev,
     static const char rgb[] = "DeviceRGB";
     gx_device_ijs *ijsdev = (gx_device_ijs *)dev;
 
+    if (ijsdev->memory->gs_lib_ctx->core->path_control_active)
+        return_error(gs_error_invalidaccess);
+
     code = gx_default_finish_copydevice(dev, from_dev);
     if(code < 0)
         return code;
@@ -1363,7 +1366,7 @@ gsijs_put_params(gx_device *dev, gs_para
     if (code >= 0)
         code = gsijs_read_string(plist, "IjsServer",
             ijsdev->IjsServer, sizeof(ijsdev->IjsServer),
-            dev->LockSafetyParams, is_open);
+            ijsdev->memory->gs_lib_ctx->core->path_control_active, is_open);
 
     if (code >= 0)
         code = gsijs_read_string_malloc(plist, "DeviceManufacturer",
openSUSE Build Service is sponsored by