File CVE-2024-29508.patch of Package ghostscript.36165

--- devices/vector/gdevpdtb.c.orig	2020-03-19 09:21:42.000000000 +0100
+++ devices/vector/gdevpdtb.c	2024-07-16 13:09:26.070298854 +0200
@@ -359,7 +359,7 @@ pdf_base_font_alloc(gx_device_pdf *pdev,
             font_name.size -= SUBSET_PREFIX_SIZE;
         }
     } else {
-        gs_sprintf(fnbuf, ".F%lx", (ulong)copied);
+        gs_snprintf(fnbuf, sizeof(fnbuf), "Anonymous");
         font_name.data = (byte *)fnbuf;
         font_name.size = strlen(fnbuf);
     }
openSUSE Build Service is sponsored by