Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
28853a24
Commit
28853a24
authored
Aug 22, 2018
by
Alexey Izbyshev
Committed by
Serhiy Storchaka
Aug 22, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-34457: Python/ast.c: Add missing NULL check to alias_for_import_name(). (GH-8852)
Reported by Svace static analyzer.
parent
f8c06b02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
Python/ast.c
Python/ast.c
+2
-0
No files found.
Python/ast.c
View file @
28853a24
...
...
@@ -3252,6 +3252,8 @@ alias_for_import_name(struct compiling *c, const node *n, int store)
break
;
case
STAR
:
str
=
PyUnicode_InternFromString
(
"*"
);
if
(
!
str
)
return
NULL
;
if
(
PyArena_AddPyObject
(
c
->
c_arena
,
str
)
<
0
)
{
Py_DECREF
(
str
);
return
NULL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment