This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients christian.heimes, eric.smith, jkloth, mark.dickinson, vstinner, zach.ware
Date 2013-11-23.20:25:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1385238339.33.0.684266414286.issue19638@psf.upfronthosting.co.za>
In-reply-to
Content
> PyOS_string_to_double() is a public function. The check is needed in case 
> 3rd party code uses it without extra checks.

In that case, I'd suggest something more like my modifications to dtoa.c.  By the time that you end up with a negative 'e', all sorts of other things have already gone wrong, possibly including undefined behaviour from signed integer overflow.  IF we need to modify dtoa.c, the check should be earlier IMO.
History
Date User Action Args
2013-11-23 20:25:39mark.dickinsonsetrecipients: + mark.dickinson, vstinner, eric.smith, christian.heimes, jkloth, zach.ware
2013-11-23 20:25:39mark.dickinsonsetmessageid: <1385238339.33.0.684266414286.issue19638@psf.upfronthosting.co.za>
2013-11-23 20:25:39mark.dickinsonlinkissue19638 messages
2013-11-23 20:25:39mark.dickinsoncreate