Staging
v0.5.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
pystrcmp.h
#ifndef Py_STRCMP_H
#define Py_STRCMP_H

#ifdef __cplusplus
extern "C" {
#endif

PyAPI_FUNC(int) PyOS_mystrnicmp(const char *, const char *, Py_ssize_t);
PyAPI_FUNC(int) PyOS_mystricmp(const char *, const char *);

#if defined(MS_WINDOWS) || defined(PYOS_OS2)
#define PyOS_strnicmp strnicmp
#define PyOS_stricmp stricmp
#else
#define PyOS_strnicmp PyOS_mystrnicmp
#define PyOS_stricmp PyOS_mystricmp
#endif

#ifdef __cplusplus
}
#endif

#endif /* !Py_STRCMP_H */
back to top