diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2016-09-28 19:35:45 +0800 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-10-12 15:36:22 +0100 |
commit | 59f74777cabca2c960411f0d3e0ae8ffd2d4aaed (patch) | |
tree | 8a4adfc2f0e73106b8972dc15078432afe8d005d /Makerules | |
parent | ffd0a70e4d0ca24934877d40189d6881d227ccb6 (diff) | |
download | mupdf-59f74777cabca2c960411f0d3e0ae8ffd2d4aaed.tar.xz |
Bug 697151: Pacify valgrind when reading padding while unpacking tiles
If e.g. an 18 x 11 PNG image used 1 bit depth and a single component
the source data fed to fz_unpack_tile() would have padding bits at the
end of each line of whole bytes, because 18 bits is not a multiple of 8.
The optimized 1 component versions of fz_unpack_tile() for a bit depth
of 1 deliberately read the padding when doing the table lookups, knowing
that this does not matter because of the construction of the table.
Valgrind is incapable of understanding this, so we provide some extra
masking (used only in PACIFY_VALGRIND builds) that explicitly mask
off the invalid bits.
Diffstat (limited to 'Makerules')
0 files changed, 0 insertions, 0 deletions