Message213686
pytime.c:184: runtime error: value -1e+200 is outside the range of representable values of type 'long'
and
pytime.c:218: runtime error: value -1e+200 is outside the range of representable values of type 'long'
It appears the cast on 'intpart' is generating the finding. 'intpart' is a double.
*sec = (time_t)intpart;
err = intpart - (double)*sec;
if (err <= -1.0 || err >= 1.0) {
error_time_t_overflow();
return -1;
}
Shouldn't a range test based on TIME_T_MAX with an epsilon occur first? |
|
Date |
User |
Action |
Args |
2014-03-15 21:48:45 | Jeffrey.Walton | set | recipients:
+ Jeffrey.Walton |
2014-03-15 21:48:45 | Jeffrey.Walton | set | messageid: <1394920125.71.0.89652214774.issue20941@psf.upfronthosting.co.za> |
2014-03-15 21:48:45 | Jeffrey.Walton | link | issue20941 messages |
2014-03-15 21:48:45 | Jeffrey.Walton | create | |
|