[gs-commits] ghostpdl branch, master, updated. jbig2dec-0.14-1798-g2793769
[email protected] (Julian Smith) Mon, 4 Nov 2019 12:42:15 +0000 (UTC)
| Newsgroups | gmane.comp.printing.ghostscript.cvs |
|---|---|
| Message-ID | <[email protected]> |
The ghostpdl branch, master has been updated
via 2793769ff107d8d22dadd30c6e68cd781b569550 (commit)
from 366ad48d076c1aa4c8f83c65011258a04e348207 (commit)
----------------------------------------------------------------------
commit 2793769ff107d8d22dadd30c6e68cd781b569550
Author: Julian Smith <[email protected]>
Date: Mon Nov 4 12:30:33 2019 +0000
Bug 701819: fixed ordering in if expression to avoid out-of-bounds access.
Fixes:
./sanbin/gs -dBATCH -dNOPAUSE -r965 -sOutputFile=tmp -sDEVICE=pcx16 ../bug-701819.pdf
diff --git a/devices/gdevpcx.c b/devices/gdevpcx.c
index 1735851..91de4ab 100644
--- a/devices/gdevpcx.c
+++ b/devices/gdevpcx.c
@@ -442,7 +442,7 @@ pcx_write_rle(const byte * from, const byte * end, int step, gp_file * file)
byte data = *from;
from += step;
- if (data != *from || from == end) {
+ if (from >= end || data != *from) {
if (data >= 0xc0)
gp_fputc(0xc1, file);
} else {
Summary of changes:
devices/gdevpcx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)