summaryrefslogtreecommitdiff
path: root/freetype
diff options
context:
space:
mode:
authorKen Sharp <ken.sharp@artifex.com>2018-03-02 10:54:06 +0000
committerKen Sharp <ken.sharp@artifex.com>2018-03-02 10:54:06 +0000
commit3da667d889e54fb1a323769fbb4f93b971d0fff4 (patch)
tree370fc90493648d2a73acba713e9212d1011e9004 /freetype
parent0221c9e4c43b25375dab6c9d15a777eecf20d261 (diff)
downloadghostpdl-3da667d889e54fb1a323769fbb4f93b971d0fff4.tar.gz
CCITT Fax - ensure calculation rounds up
Still Bug #696413, follows on from commit 0221c9 When calculating the number of bytes required to store the encoded lines we multiply the number of columns byt the number of bits required for 2 pixels, then divide by 16 to get the required number of bytes. This commit simply ensures that the division by 16 is rounded *up* and not down. Previously we could end up dropping up to 7 bits of required space. Generally this is not likely to be a problem but it is technically a problem, and can be demonstrated on pathological cases.
Diffstat (limited to 'freetype')
0 files changed, 0 insertions, 0 deletions