Bug 2407 - Cannot read signed long
: Cannot read signed long
Status: RESOLVED LATER
: libtiff
default
: 4.0.1
: PC Windows NT
: P2 enhancement
: ---
Assigned To:
:
:
: migrated_to_gitlab
:
:
  Show dependency treegraph
 
Reported: 2012-08-24 00:38 by
Modified: 2019-10-01 14:19 (History)


Attachments
Proposal patch (16.93 KB, patch)
2017-05-16 06:40, Natsuki Kawai
Details | Diff
Test fo the patch (3.53 KB, text/x-csrc)
2017-05-16 06:43, Natsuki Kawai
Details


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2012-08-24 00:38:39
Libtiff cannot read a signed integer(TIFF_SLONG) from a tiff file, but it can
read an unsigned one(TIFF_LONG).

A test case is included. The output I got is:

Done write.
TEST_TAG value: 0x1234
Read TEST_TAG_NOT_WOKING value failed.
Done read.
------- Comment #1 From 2017-01-11 15:17:00 -------
There's no test case attached to this ticket
------- Comment #2 From 2017-05-16 06:40:51 -------
Created an attachment (id=775) [details]
Proposal patch

I encountered a similar problem.
The cause is that functions for reading signed integer fields are not
implemented on tif_dirread.c.
------- Comment #3 From 2017-05-16 06:43:02 -------
Created an attachment (id=776) [details]
Test fo the patch
------- Comment #4 From 2019-10-01 14:19:37 -------
Bugzilla is no longer used for tracking libtiff issues. Remaining open tickets,
such as this one, have been migrated to the libtiff GitLab instance at
https://gitlab.com/libtiff/libtiff/issues .

The migrated tickets have their summary prefixed with [BZ#XXXX] where XXXX is
the initial Bugzilla issue number.