Message109483
_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. |
|
Date |
User |
Action |
Args |
2010-07-07 16:42:25 | mark.dickinson | set | recipients:
+ mark.dickinson |
2010-07-07 16:42:25 | mark.dickinson | set | messageid: <1278520945.21.0.807868550373.issue9190@psf.upfronthosting.co.za> |
2010-07-07 16:42:23 | mark.dickinson | link | issue9190 messages |
2010-07-07 16:42:23 | mark.dickinson | create | |
|