Staging
v0.5.1
https://github.com/python/cpython
Revision 10bf6e482328f622f4b2659e4ad5e3d88f57ba58 authored by Miss Islington (bot) on 21 June 2020, 19:11:29 UTC, committed by GitHub on 21 June 2020, 19:11:29 UTC

Detected by Coverity.
(cherry picked from commit eb0d5c38de7f970d8cd8524f4163d831c7720f51)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
1 parent a4c0956
Raw File
Tip revision: 10bf6e482328f622f4b2659e4ad5e3d88f57ba58 authored by Miss Islington (bot) on 21 June 2020, 19:11:29 UTC
bpo-41056: Fix a NULL pointer dereference on MemoryError within the ssl module. (GH-21009)
Tip revision: 10bf6e4
pycore_getopt.h
#ifndef Py_INTERNAL_PYGETOPT_H
#define Py_INTERNAL_PYGETOPT_H

#ifndef Py_BUILD_CORE
#  error "this header requires Py_BUILD_CORE define"
#endif

extern int _PyOS_opterr;
extern Py_ssize_t _PyOS_optind;
extern const wchar_t *_PyOS_optarg;

extern void _PyOS_ResetGetOpt(void);

typedef struct {
    const wchar_t *name;
    int has_arg;
    int val;
} _PyOS_LongOption;

extern int _PyOS_GetOpt(Py_ssize_t argc, wchar_t * const *argv, int *longindex);

#endif /* !Py_INTERNAL_PYGETOPT_H */
back to top