Opened 11 years ago

Closed 11 years ago

#2576 closed defect (fixed)

Crash in rawdataset.cpp with pixeloffset=0

Reported by: Even Rouault Owned by: Even Rouault
Priority: normal Milestone: 1.5.3
Component: default Version: 1.5.0
Severity: normal Keywords: rawdataset pixeloffset
Cc: arb@…

Description

Reported by Andrew Brooks

The following .vrt will trigger a crash in rawdataset.cpp when doing I/O because of the PixelOffset? == 0

<VRTDataset rasterXSize="2048" rasterYSize="1021">
   <VRTRasterBand dataType="UInt16" band="1" subClass="VRTRawRasterBand">
    <SourceFilename relativetoVRT="1">input.dat.ch1</SourceFilename>
     <ImageOffset>0</ImageOffset>
     <PixelOffset>0</PixelOffset>
     <LineOffset>0</LineOffset>
   </VRTRasterBand>
</VRTDataset>

Change History (1)

comment:1 Changed 11 years ago by Even Rouault

Milestone: 1.5.3
Resolution: fixed
Status: newclosed

Fixed in trunk in r15394 and in branches/1.5 in r15395

Note: See TracTickets for help on using tickets.