File CVE-2023-38559.patch of Package ghostscript

--- base/gdevdevn.c.orig	2022-04-04 15:48:49.000000000 +0200
+++ base/gdevdevn.c	2023-07-26 11:31:03.873226054 +0200
@@ -1950,7 +1950,7 @@ devn_pcx_write_rle(const byte * from, co
         byte data = *from;
 
         from += step;
-        if (data != *from || from == end) {
+        if (from >= end || data != *from) {
             if (data >= 0xc0)
                 gp_fputc(0xc1, file);
         } else {
openSUSE Build Service is sponsored by