Ticket #4399 (closed defect: fixed)

Opened 17 months ago

Last modified 3 weeks ago

Error in OGRFastAtof

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

Description

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

Changed 17 months ago by rouault

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to 1.7.4

Ouch, this is embarassing. Thanks for reporting !

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

Changed 3 weeks ago by rouault

  • milestone 1.7.4 deleted

Milestone 1.7.4 deleted

Note: See TracTickets for help on using tickets.