summaryrefslogtreecommitdiff
path: root/base/memento.c
diff options
context:
space:
mode:
authorJulian Smith <jules@op59.net>2019-10-28 14:37:48 +0000
committerJulian Smith <jules@op59.net>2019-10-28 15:37:55 +0000
commit450da26a76286a8342ec0864b3d113856709f8f6 (patch)
tree689379d487113dc73173267f3c14001ff2422551 /base/memento.c
parent93cb0c0adbd9bcfefd021d59c472388f67d3300d (diff)
downloadghostpdl-450da26a76286a8342ec0864b3d113856709f8f6.tar.gz
Bug 701785: fixed sanitizer heap-buffer-overflow in lprn_is_black().
In contrib/lips4/gdevlprn.c:lprn_is_black(), it seems that bpl is not necessarily a multiple of lprn->nBw, so we need to explicitly avoid straying into the next line's data. This also avoids accessing beyond our buffer if we are already on the last line, and so fixes the sanitizer error. Fixes: ./sanbin/gs -sOutputFile=tmp -sDEVICE=lips2p ../bug-701785.pdf
Diffstat (limited to 'base/memento.c')
0 files changed, 0 insertions, 0 deletions