Ticket #4324 (closed defect: fixed)

Opened 19 months ago

Last modified 19 months ago

Nitfs containing multiple copies of the same TRE result in memory corruption on write.

Reported by: jeepingben Owned by: warmerdam
Priority: normal Milestone:
Component: GDAL_Raster Version: svn-trunk
Severity: normal Keywords: nitf
Cc:

Description

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.

Attachments

U_4020H.r7 Download (8.6 KB) - added by jeepingben 19 months ago.
nitf with duplicate tags

Change History

Changed 19 months ago by jeepingben

nitf with duplicate tags

Changed 19 months ago by rouault

  • keywords nitf added
  • resolution set to fixed
  • status changed from new to closed
  • component changed from default to GDAL_Raster

r23304 /trunk/gdal/frmts/nitf/nitffile.c: NITF: truncate TRE name to 6 character (#4324)

Note: See TracTickets for help on using tickets.