Tcl Library Source Code

View Ticket
Login
2026-11-16
00:06 • Ticket [1924065fff] tiff - addEntry doesn't overwrite status still Open with 3 other changes artifact: dc4c88e572 user: serhiy.storchaka
2026-11-15
23:39
Fix [1924065fff]: tiff::addEntry did not replace an existing entry with the same tag: it stored the entry under the whole {tag value} list instead of the tag. nametotag also checked the whole entry instead of the tag against the hex tag pattern, so a numeric tag with a value was rejected as unknown. Remove the knownBug constraint from tiff-23.* and add tiff-23a.* for numeric tags. leaf check-in: b15c6607e4 user: serhiy.storchaka tags: tiff-addentry-overwrite
2008-03-24
11:20 • Ticket [1924065fff] tiff - addEntry doesn't overwrite status still Open with 5 other changes artifact: 119849087a user: andreas_kupries
03:52 • New ticket [1924065fff]. artifact: 59758af082 user: andreas_kupries

Ticket UUID: 1924065
Title: tiff - addEntry doesn't overwrite
Type: Bug Version: None
Submitter: andreas_kupries Created on: 2008-03-24 03:52:45
Subsystem: tiff Assigned To: afaupell
Priority: 5 Medium Severity:
Status: Open Last Modified: 2026-11-16 00:06:14
Resolution: None Closed By:
    Closed on:
Description:
The documentation of tiff::addEntry states that it does overwrite the data of a tag should that tag exist. This doesn't seem to happen.

See tests tiff-23.*, in tiff.test, marked as knownBug.

They first use addEntry to add a tag for 'Artist', and then addEntry again to overwrite 'Artist' with new data.
The new data is not taken, per the inspection with 'getEntry'.
User Comments: serhiy.storchaka added on 2026-11-16 00:06:14:

Proposed fix in branch tiff-addentry-overwrite. addEntry stored the entry under the whole entry list instead of its tag, so the file got a second entry with the same tag; nametotag also checked the whole entry instead of the tag. The tiff-23 tests are enabled, and tiff-23a tests numeric tags.


andreas_kupries added on 2008-03-24 11:20:32:

data_type - 112883