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
d33491ea
Commit
d33491ea
authored
Feb 05, 2014
by
Christian Heimes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #20515: Fix NULL pointer dereference introduced by issue #20368
CID 1167595
parent
6068b6c9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
Misc/NEWS
Misc/NEWS
+2
-0
Modules/_tkinter.c
Modules/_tkinter.c
+3
-0
No files found.
Misc/NEWS
View file @
d33491ea
...
...
@@ -45,6 +45,8 @@ Core and Builtins
Library
-------
-
Issue
#
20515
:
Fix
NULL
pointer
dereference
introduced
by
issue
#
20368.
-
Issue
#
19186
:
Restore
namespacing
of
expat
symbols
inside
the
pyexpat
module
.
-
Issue
#
20426
:
When
passing
the
re
.
DEBUG
flag
,
re
.
compile
()
displays
the
...
...
Modules/_tkinter.c
View file @
d33491ea
...
...
@@ -1568,6 +1568,9 @@ varname_converter(PyObject *in, void *_out)
if
(
PyUnicode_Check
(
in
))
{
Py_ssize_t
size
;
s
=
PyUnicode_AsUTF8AndSize
(
in
,
&
size
);
if
(
s
==
NULL
)
{
return
0
;
}
if
(
size
>
INT_MAX
)
{
PyErr_SetString
(
PyExc_OverflowError
,
"string is too long"
);
return
0
;
...
...
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