Staging
v0.8.1
https://github.com/python/cpython
Revision d6fddf3d15b5c7b012c919b48de6447d7a250f1c authored by Barry Warsaw on 25 September 2013, 13:36:58 UTC, committed by Barry Warsaw on 25 September 2013, 13:36:58 UTC
  limiting the call to readline().  Original patch by Michał
  Jastrzębski and Giampaolo Rodola.

with test fixes by Serhiy Storchaka.
1 parent 4e95d60
Raw File
Tip revision: d6fddf3d15b5c7b012c919b48de6447d7a250f1c authored by Barry Warsaw on 25 September 2013, 13:36:58 UTC
- Issue #16038: CVE-2013-1752: ftplib: Limit amount of data read by
Tip revision: d6fddf3
timefuncs.h
/*  timefuncs.h
 */

/* Utility function related to timemodule.c. */

#ifndef TIMEFUNCS_H
#define TIMEFUNCS_H
#ifdef __cplusplus
extern "C" {
#endif


/* Cast double x to time_t, but raise ValueError if x is too large
 * to fit in a time_t.  ValueError is set on return iff the return
 * value is (time_t)-1 and PyErr_Occurred().
 */
PyAPI_FUNC(time_t) _PyTime_DoubleToTimet(double x);


#ifdef __cplusplus
}
#endif
#endif  /* TIMEFUNCS_H */
back to top