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 Jeffrey.Walton
Recipients Jeffrey.Walton
Date 2014-03-15.21:48:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1394920125.71.0.89652214774.issue20941@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2014-03-15 21:48:45Jeffrey.Waltonsetrecipients: + Jeffrey.Walton
2014-03-15 21:48:45Jeffrey.Waltonsetmessageid: <1394920125.71.0.89652214774.issue20941@psf.upfronthosting.co.za>
2014-03-15 21:48:45Jeffrey.Waltonlinkissue20941 messages
2014-03-15 21:48:45Jeffrey.Waltoncreate