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
ef86368e
Commit
ef86368e
authored
Jul 26, 2013
by
Christian Heimes
Browse files
Options
Browse Files
Download
Plain Diff
Fix possible NULL pointer dereference in PyCurses_Start_Color()
CID 1058276
parents
5d7c1b1a
a956e645
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Modules/_cursesmodule.c
Modules/_cursesmodule.c
+4
-0
No files found.
Modules/_cursesmodule.c
View file @
ef86368e
...
...
@@ -2926,9 +2926,13 @@ PyCurses_Start_Color(PyObject *self)
if
(
code
!=
ERR
)
{
initialisedcolors
=
TRUE
;
c
=
PyLong_FromLong
((
long
)
COLORS
);
if
(
c
==
NULL
)
return
NULL
;
PyDict_SetItemString
(
ModDict
,
"COLORS"
,
c
);
Py_DECREF
(
c
);
cp
=
PyLong_FromLong
((
long
)
COLOR_PAIRS
);
if
(
cp
==
NULL
)
return
NULL
;
PyDict_SetItemString
(
ModDict
,
"COLOR_PAIRS"
,
cp
);
Py_DECREF
(
cp
);
Py_INCREF
(
Py_None
);
...
...
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