Staging
v0.5.1
https://github.com/python/cpython
Revision 0ef61ee7b194a1c15747d6bca3cf30a5c581e7e3 authored by Miss Islington (bot) on 22 August 2018, 05:54:55 UTC, committed by GitHub on 22 August 2018, 05:54:55 UTC

Reported by Svace static analyzer.
(cherry picked from commit 28853a249b1d0c890b7e9ca345290bb8c1756446)

Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
1 parent b14a68f
Raw File
Tip revision: 0ef61ee7b194a1c15747d6bca3cf30a5c581e7e3 authored by Miss Islington (bot) on 22 August 2018, 05:54:55 UTC
bpo-34457: Python/ast.c: Add missing NULL check to alias_for_import_name(). (GH-8852)
Tip revision: 0ef61ee
ast.h
#ifndef Py_AST_H
#define Py_AST_H
#ifdef __cplusplus
extern "C" {
#endif

PyAPI_FUNC(int) PyAST_Validate(mod_ty);
PyAPI_FUNC(mod_ty) PyAST_FromNode(
    const node *n,
    PyCompilerFlags *flags,
    const char *filename,       /* decoded from the filesystem encoding */
    PyArena *arena);
PyAPI_FUNC(mod_ty) PyAST_FromNodeObject(
    const node *n,
    PyCompilerFlags *flags,
    PyObject *filename,
    PyArena *arena);

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