diff options
author | Robin Watts <robin.watts@artifex.com> | 2019-01-21 16:57:10 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2019-01-21 17:09:53 +0000 |
commit | 882343089e6c9ec2a4ce574cd7198281706b2f21 (patch) | |
tree | 8e2b66397adbd2c463688b0c271edb5335e75268 /toolbin | |
parent | f612df16597bbae73707d0dc9a90235b3de26c6e (diff) | |
download | ghostpdl-882343089e6c9ec2a4ce574cd7198281706b2f21.tar.gz |
Fix valgrind problem in pdfwrite.
The following command:
gs -sOutputFile=out2.ps -dMaxBitmap=400000000 -sDEVICE=ps2write -r72
-Z: -dNOPAUSE -dBATCH -K2000000 -dClusterJob
/home/marcos/cluster/tests_private/comparefiles/Bug690837.pdf
shows problems where we call dash_pattern_eq on uninitialised data.
It looks very much to me like pdf_load_viewer_state fails to copy
the dash data, despite allocating space for it. We fix that here.
Also, we never check whether the allocation fails or not. Add some
error checking.
Diffstat (limited to 'toolbin')
0 files changed, 0 insertions, 0 deletions