Skip to content

gh-152954: Add tp_new to sqlite3 Connection and Cursor objects to initialize row_factory and text_factory before python code can access it#152956

Open
stestagg wants to merge 1 commit into
python:mainfrom
stestagg:gh152954
Open

gh-152954: Add tp_new to sqlite3 Connection and Cursor objects to initialize row_factory and text_factory before python code can access it#152956
stestagg wants to merge 1 commit into
python:mainfrom
stestagg:gh152954

Conversation

@stestagg

@stestagg stestagg commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

also additional defensive checks, because the cost/performance here is tiny and it's safer to check

I think the NULL checks in usage may be contentious, I decided to add them because this is the third attempt to plug the possible holes of these attributes becoming NULL, so it seems safer to add these basically free checks in case some other condition also sets these attributes to NULL.

… to initialize row_factory and text_factory before python code can access it (causes crash when NULL), also additional defensive checks, because the cost/performance here is tiny and it's safer to check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant