Fix switch value in BigTiffImage::readData
This function extracts a 2, 4 or 8 byte integer from the image and swaps it according to the current setting. However, it was implicitly assuming, that it reads the same amount from the image is is requested. If that is not the case, e.g. if 8 bytes are requested but only 4 are read => result is created via byteSwap8() which reads 8 bytes !but 4 of those are uninitialized! Using the actually read size fixes this problem.v0.27.3
parent
ecf955812d
commit
67ec90bdab
Loading…
Reference in New Issue