Opened 24 years ago

Last modified 24 years ago

#5 closed defect (fixed)

GXF open fails for files with more ROWs than POINTs

Reported by: msalazar@… Owned by: warmerda@…
Priority: high Milestone:
Component: default Version: unspecified
Severity: normal Keywords:
Cc:

Description

in gdal/frmts/gxf/gxfopen.c routine GXFGetRawScanline you have

/* -------------------------------------------------------------------- */
/*      Validate scanline.                                              */
/* -------------------------------------------------------------------- */
    if( iScanline < 0 || iScanline >= psGXF->nRawXSize )

Shouldn't the scanline be tested against nRawYSize instead of X?  What I'm
seeing is a failure here because my file is taller than it is wide so when
gdal_translate tries to read the row past nRawXSize it returns an error.

Change History (1)

comment:1 by warmerda@…, 24 years ago

You are absolutely correct.  I have checked in the fix to gxfopen.c.
Note: See TracTickets for help on using tickets.