Opened 11 years ago

Closed 11 years ago

Last modified 9 years ago

#4399 closed defect (fixed)

Error in OGRFastAtof

Reported by: larrybiehl Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: 1.7.3
Severity: normal Keywords: GML header


The coordinates were not being read correctly in the gml headers of a jpeg2000 file from PLEIADES-DIMAPV2 data sets. 4.83808e+06 was being read as 4. Problem was traced to OGRFastAtof.

while(*p == '+'
*p == '-' (*p >= '0' && *p <= '9')
(*p == '.')
Added by Larry Biehl 12/16/2011
(*p == 'e'
*p == 'E' *p == 'd' *p == 'D'))

Looks to me like that a check needs to be include for '.' so that it will be included in the string that goes to atof. I am using 1.7.3 code but also did not find it in the 1.8.1 version of the file.

Change History (2)

comment:1 by Even Rouault, 11 years ago

Milestone: 1.7.4
Resolution: fixed
Status: newclosed

Ouch, this is embarassing. Thanks for reporting !

Fixed in trunk (r23584), branches/1.8 (r23585) and branches/1.7 (r23586)

comment:2 by Even Rouault, 9 years ago

Milestone: 1.7.4

Milestone 1.7.4 deleted

Note: See TracTickets for help on using tickets.