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
d0e8212e
Commit
d0e8212e
authored
Feb 20, 2017
by
Xiang Zhang
Committed by
GitHub
Feb 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-29347: Fix possibly dereferencing undefined pointers when creating weakref objects (#128)
parent
e395c4db
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
Misc/NEWS
Misc/NEWS
+3
-0
Objects/weakrefobject.c
Objects/weakrefobject.c
+2
-0
No files found.
Misc/NEWS
View file @
d0e8212e
...
@@ -10,6 +10,9 @@ What's New in Python 3.7.0 alpha 1?
...
@@ -10,6 +10,9 @@ What's New in Python 3.7.0 alpha 1?
Core and Builtins
Core and Builtins
-----------------
-----------------
- bpo-29347: Fixed possibly dereferencing undefined pointers
when creating weakref objects.
- bpo-29438: Fixed use-after-free problem in key sharing dict.
- bpo-29438: Fixed use-after-free problem in key sharing dict.
- bpo-29546: Set the '
path
' and '
name
' attribute on ImportError for ``from ... import ...``.
- bpo-29546: Set the '
path
' and '
name
' attribute on ImportError for ``from ... import ...``.
...
...
Objects/weakrefobject.c
View file @
d0e8212e
...
@@ -24,6 +24,8 @@ init_weakref(PyWeakReference *self, PyObject *ob, PyObject *callback)
...
@@ -24,6 +24,8 @@ init_weakref(PyWeakReference *self, PyObject *ob, PyObject *callback)
{
{
self
->
hash
=
-
1
;
self
->
hash
=
-
1
;
self
->
wr_object
=
ob
;
self
->
wr_object
=
ob
;
self
->
wr_prev
=
NULL
;
self
->
wr_next
=
NULL
;
Py_XINCREF
(
callback
);
Py_XINCREF
(
callback
);
self
->
wr_callback
=
callback
;
self
->
wr_callback
=
callback
;
}
}
...
...
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