FPReadTiff: "LZW code out of bounds" on valid file + patch
Original Reporter info from Mantis: kluug.net @onpok
-
Reporter name: Ondrej Pokorny
Original Reporter info from Mantis: kluug.net @onpok
- Reporter name: Ondrej Pokorny
Description:
I get a "LZW code out of bounds" error on a valid file.
The TIFF image is quite big, so I uploaded it to google drive instead of here:
https://drive.google.com/open?id=1zU3207DB7fxeTxXM693CZN0zY0WstIjP
Steps to reproduce:
program Project1;
uses
FPReadTiff, FPImage;
var
xBmp: TFPCustomImage;
begin
xBmp := TFPMemoryImage.Create(0, 0);
xBmp.LoadFromFile('test.tif');
xBmp.Free;
end.
Additional information:
The simple patch fixes it for me - I just deactivate (comment out) the out-of-bounds error and everything is read correctly.
Mantis conversion info:
- Mantis ID: 36998
- Fixed in version: 3.3.1
- Fixed in revision: 45190 (#42bfe6d4)
- Target version: 4.0.0