Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#5451 closed defect (fixed)

GDALPamRasterBand::SerializeToXML() segfault when saving an empty RAT

Reported by: Even Rouault Owned by: Even Rouault
Priority: normal Milestone: 1.11.1
Component: GDAL_Raster Version: 1.11.0
Severity: normal Keywords: rat


The following segfaults due to the serialization of RAT being NULL :

    ds = gdal.GetDriverByName('GTiff').Create('/vsimem/rat_3.tif', 1, 1 )
    ds.GetRasterBand(1).SetDefaultRAT( gdal.RasterAttributeTable() )
    ds = None

    gdal.GetDriverByName('GTiff').Delete( '/vsimem/rat_3.tif' )

Change History (2)

comment:1 Changed 7 years ago by Even Rouault

Resolution: fixed
Status: newclosed
Version: unspecified1.11.0

Fixed in trunk (r27269) and branches/1.11 (r27270)

comment:2 Changed 7 years ago by Even Rouault

Another symptom: this can occur when computing statistics on a .tif file with a .aux file (#5609)

Note: See TracTickets for help on using tickets.