bpo-31734: Raise a ValueError instead of crashing, when the get() method of an uninitialized sqlite3.Cache object is called by orenmn · Pull Request #3939 · python/cpython
Navigation Menu
{{ message }}
- Notifications You must be signed in to change notification settings
- Fork 34.4k
Closed
orenmn wants to merge 11 commits intopython:masterfrom
Conversation
Copy link Copy Markdown
Contributor
In addition:
- Prevent a Cache object from becoming partially initialized in case its
__init__()method failed after it was already initialized. (And thus prevent the case of raising aSystemErrorby theget()method of a partially initialized Cache object. The fix for that would also prevent refleaks in case of calling the__init__()method of a Cache object more than once.) - Prevent a memory leak in the deallocation of an uninitialized Cache object.
- Add tests to
test_sqlite, to verify that the crash and theSystemErrorare no more.
orenmn added 11 commits
October 9, 2017 17:00
bedevere-bot
added
the
awaiting review
label
the-knights-who-say-ni
added
the
CLA signed
label
Copy link Copy Markdown
Member
berkerpeksag
commented
Sep 8, 2018
berkerpeksag commented
Sep 8, 2018Closing as per https://bugs.python.org/issue31734#msg322171
berkerpeksag
closed this
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment