This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: PyDict_Copy() can return non-NULL value on error
Type: Stage:
Components: Interpreter Core Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: philthompson10, rhettinger
Priority: normal Keywords:

Created on 2005-04-15 13:37 by philthompson10, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
PyDict_Copy.patch philthompson10, 2005-04-15 13:37 Patch to dictobject.c to fix PyDict_Copy()
Messages (2)
msg25020 - (view) Author: Phil Thompson (philthompson10) Date: 2005-04-15 13:37
PyDict_Copy() will return an invalid pointer rather 
than NULL if the call to PyDict_Merge() fails. 
Attached patch fixes it. 
msg25021 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2005-04-15 16:08
Logged In: YES 
user_id=80475

Thanks for the patch.
Applied as Objects/dictobject.c 2.164 and 2.162.4.1
.
History
Date User Action Args
2022-04-11 14:56:10adminsetgithub: 41861
2005-04-15 13:37:44philthompson10create