summaryrefslogtreecommitdiff
path: root/base/gsmemraw.h
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2016-04-19 15:56:09 +0100
committerChris Liddell <chris.liddell@artifex.com>2016-04-19 16:25:54 +0100
commit4976a1a4a0b44cd44467e6fe2ba5d453e7573434 (patch)
tree2764d8d7c4397f89819a86b33cced6b291485f30 /base/gsmemraw.h
parenta1e2d8b247955e65a7e1ed26e3b8163a58fa6ca7 (diff)
downloadghostpdl-4976a1a4a0b44cd44467e6fe2ba5d453e7573434.tar.gz
Bug 696716: cff parser: cope with incomplete encoded numbers
The fonts in the test case had an incomplete 32 bit number at the end of the stream - meaning it threw an error trying to read 4 bytes when only 1 byte was available. Update the code to read *up to* 4 bytes in these cases. The fonts are still invalid because they leave a dirty operand stack, but the cff parser ignores such problems. Also quieten an uninitialised variable warning.
Diffstat (limited to 'base/gsmemraw.h')
0 files changed, 0 insertions, 0 deletions