-
-
Notifications
You must be signed in to change notification settings - Fork 30.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-29438: fixed use-after-free in key sharing dict #17
Conversation
Patch for Python 3.5 is slightly differ from this PR. |
c38d9fe
to
2dd62f6
Compare
Objects/dictobject.c
Outdated
@@ -4352,15 +4352,18 @@ _PyObjectDict_SetItem(PyTypeObject *tp, PyObject **dictptr, | |||
} | |||
if (value == NULL) { | |||
res = PyDict_DelItem(dict, key); | |||
if (cached != ((PyDictObject *)dict)->ma_keys) { | |||
// key sharing dict doesn't allow deletion. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just as I said this is somewhat misleading and it's better to make it clear.
2dd62f6
to
bf8bd7e
Compare
Codecov Report@@ Coverage Diff @@
## master #17 +/- ##
==========================================
+ Coverage 82.37% 82.37% +<.01%
==========================================
Files 1427 1427
Lines 350948 350948
==========================================
+ Hits 289088 289095 +7
+ Misses 61860 61853 -7 Continue to review full report at Codecov.
|
Win arm32 master
The `html_url` field takes us to the actual comment on GitHub. `url` field took us to an API JSON response.
No description provided.