File CVE-2025-27835.patch of Package ghostscript.38120

--- psi/zbfont.c.orig	2020-03-19 09:21:42.000000000 +0100
+++ psi/zbfont.c	2025-03-28 13:21:57.870828120 +0100
@@ -244,7 +244,7 @@ gs_font_map_glyph_to_unicode(gs_font *fo
                     if (l > length)
                         return l;
 
-                    memcpy(unicode_return, v->value.const_bytes, l * sizeof(short));
+                    memcpy(unicode_return, v->value.const_bytes, l);
                     return l;
                 }
                 if (r_type(v) == t_integer) {
openSUSE Build Service is sponsored by