File CVE-2025-48708.patch of Package ghostscript.40089
--- base/gslibctx.c.orig 2024-06-28 14:30:53.263175878 +0200
+++ base/gslibctx.c 2025-08-07 09:49:10.568981762 +0200
@@ -1057,9 +1057,9 @@ gs_lib_ctx_stash_sanitized_arg(gs_lib_ct
case 'S':
/* By default, we want to keep the key, but lose the value */
p = arg+2;
- while (*p && *p != '=')
+ while (*p && *p != '=' && *p != '#')
p++;
- if (*p == '=')
+ if (*p == '=' || *p == '#')
p++;
if (*p == 0)
break; /* No value to elide */