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 mark.dickinson
Date 2010-07-07.16:42:23
SpamBayes Score 0.0253714
Marked as misclassified No
Message-id <>
_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, 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.
Date User Action Args
2010-07-07 16:42:25mark.dickinsonsetrecipients: + mark.dickinson
2010-07-07 16:42:25mark.dickinsonsetmessageid: <>
2010-07-07 16:42:23mark.dickinsonlinkissue9190 messages
2010-07-07 16:42:23mark.dickinsoncreate