Opened 10 years ago

Closed 10 years ago

Last modified 10 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
Cc:

Description

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 by Even Rouault, 10 years ago

Resolution: fixed
Status: newclosed
Version: unspecified1.11.0

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

comment:2 by Even Rouault, 10 years ago

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.