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
6aefa916
Commit
6aefa916
authored
Sep 02, 2006
by
Neal Norwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #1548092: fix curses.tparm seg fault on invalid input. Needs backport to 2.5.1 and earlier.
parent
d7df712e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
Misc/NEWS
Misc/NEWS
+2
-0
Modules/_cursesmodule.c
Modules/_cursesmodule.c
+4
-0
No files found.
Misc/NEWS
View file @
6aefa916
...
...
@@ -25,6 +25,8 @@ Library
Extension Modules
-----------------
- Bug #1548092: fix curses.tparm seg fault on invalid input.
Tests
-----
...
...
Modules/_cursesmodule.c
View file @
6aefa916
...
...
@@ -2334,6 +2334,10 @@ PyCurses_tparm(PyObject *self, PyObject *args)
}
result
=
tparm
(
fmt
,
i1
,
i2
,
i3
,
i4
,
i5
,
i6
,
i7
,
i8
,
i9
);
if
(
!
result
)
{
PyErr_SetString
(
PyCursesError
,
"tparm() returned NULL"
);
return
NULL
;
}
return
PyString_FromString
(
result
);
}
...
...
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