Skip to content

Conversation

@rouault
Copy link
Member

@rouault rouault commented Nov 20, 2025

Backport #13450
Authored by: @rouault

… ' and 'xml ' boxes

For label boxes, the spec is pretty explicit about that: "Label strings are not null-terminated"
Cf
https://www.itu.int/rec/dologin_pub.asp?lang=e&id=T-REC-T.801-200208-S!!PDF-E&type=items
"M.11.13 Label box", page 197

For XML boxes, nothing explicit, but in the absence of a statement,
null-terminating byte doesn't seem necessary. Furthermore jpylyzer
documentation at https://jpylyzer.openpreservation.org/doc/latest/userManual.html
has a 'nullxml' option because 'Apparently some old versions of the Kakadu demo
applications would erroneously add a null-byte to embedded XML'.

Fixes https://lists.osgeo.org/pipermail/gdal-dev/2025-November/061180.html

Reported-by: Brad Hards <[email protected]>
@rouault rouault added this to the 3.12.1 milestone Nov 20, 2025
@rouault rouault merged commit 02d6e22 into release/3.12 Nov 20, 2025
38 checks passed
@rouault rouault deleted the backport-13450-to-release/3.12 branch November 20, 2025 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants