File CVE-2023-38559.patch of Package ghostscript.29958
--- base/gdevdevn.c.orig 2020-03-19 09:21:42.000000000 +0100 +++ base/gdevdevn.c 2023-07-26 08:31:17.027660636 +0200 @@ -1980,7 +1980,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 {