Staging
v0.5.1
https://github.com/python/cpython
Revision 09d8172837b6985c4ad90ee025f6b5a554a9f0ac authored by Tapas Kundu on 20 June 2020, 06:43:50 UTC, committed by GitHub on 20 June 2020, 06:43:50 UTC
Add host validation for control characters for more
CVE-2019-18348 protection.
(cherry picked from commit 83fc70159b24)
1 parent 37fe316
Raw File
Tip revision: 09d8172837b6985c4ad90ee025f6b5a554a9f0ac authored by Tapas Kundu on 20 June 2020, 06:43:50 UTC
[3.5] closes bpo-38576: Disallow control characters in hostnames in http.client. (#19300)
Tip revision: 09d8172
marshal.h

/* Interface for marshal.c */

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

#define Py_MARSHAL_VERSION 4

PyAPI_FUNC(void) PyMarshal_WriteLongToFile(long, FILE *, int);
PyAPI_FUNC(void) PyMarshal_WriteObjectToFile(PyObject *, FILE *, int);
PyAPI_FUNC(PyObject *) PyMarshal_WriteObjectToString(PyObject *, int);

#ifndef Py_LIMITED_API
PyAPI_FUNC(long) PyMarshal_ReadLongFromFile(FILE *);
PyAPI_FUNC(int) PyMarshal_ReadShortFromFile(FILE *);
PyAPI_FUNC(PyObject *) PyMarshal_ReadObjectFromFile(FILE *);
PyAPI_FUNC(PyObject *) PyMarshal_ReadLastObjectFromFile(FILE *);
#endif
PyAPI_FUNC(PyObject *) PyMarshal_ReadObjectFromString(const char *,
                                                      Py_ssize_t);

#ifdef __cplusplus
}
#endif
#endif /* !Py_MARSHAL_H */
back to top