Bug 4576 - strtod nan parsing bug
Status: RESOLVED FIXED
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Misc
Version: unspecified
Hardware: PC Linux
: P3 minor
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2010-03-18 12:36 EDT by Ben Millwood
Modified: 2011-02-04 10:07:58 EST
1 user (show)

See Also:


Attachments
don't return early just because endptr is NULL (964 bytes, patch)
2010-03-18 12:37 EDT, Ben Millwood

Description Ben Millwood 2010-03-18 12:36:06 EDT
I'm fairly sure no-one would have noticed this if I hadn't mentioned it, but regardless, strtod gets the parsing of nan(0x7f) wrong when endptr is NULL.

It's a pretty simple patch.
Comment 1 Ben Millwood 2010-03-18 12:37:22 EDT
Created attachment 2327 [details]
don't return early just because endptr is NULL
Comment 2 Thilo Schulz 2011-02-04 10:07:58 EST
thanks, committed r1846