forked from pool/ghostscript
e235e5412f
Security fix CVE-2023-38559 bsc#1213637 for ghostscript and ghostscript-mini OBS-URL: https://build.opensuse.org/request/show/1100802 OBS-URL: https://build.opensuse.org/package/show/Printing/ghostscript?expand=0&rev=163
12 lines
411 B
Diff
12 lines
411 B
Diff
--- 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 {
|