Author mark.dickinson
Recipients mark.dickinson
Date 2010-07-07.16:42:23
SpamBayes Score 0.0253714
Marked as misclassified No
Message-id <1278520945.21.0.807868550373.issue9190@psf.upfronthosting.co.za>
In-reply-to
Content
_PyFloat_Pack4 does a double-to-float cast, without first checking that the value being converted is within the range of a float.  According to C99 6.3.1.5p2, this results in undefined behaviour.  It should be fixed (probably via comparison with FLT_MAX before casting.)

np_float in the struct module also has this problem.
History
Date User Action Args
2010-07-07 16:42:25mark.dickinsonsetrecipients: + mark.dickinson
2010-07-07 16:42:25mark.dickinsonsetmessageid: <1278520945.21.0.807868550373.issue9190@psf.upfronthosting.co.za>
2010-07-07 16:42:23mark.dickinsonlinkissue9190 messages
2010-07-07 16:42:23mark.dickinsoncreate