Ticket #4324 (closed defect: fixed)
Nitfs containing multiple copies of the same TRE result in memory corruption on write.
|Reported by:||jeepingben||Owned by:||warmerdam|
Changeset 22866 added support for carrying multiple copies of a TRE in a nitfdataset by adding _2, _3, etc to the end of the name when storing them as metadata. The _2, _3, etc is not stripped when writing the TRE back to a nitf. This overruns the buffer at nitffile.c:1194 and results in writing incorrect nitfs.