Skip to content

gh-156101: Fix sqlite3 Cursor.arraysize on a failed assignment - #156105

Open
serhiy-storchaka wants to merge 3 commits into
python:mainfrom
serhiy-storchaka:gh-156101-sqlite-arraysize
Open

gh-156101: Fix sqlite3 Cursor.arraysize on a failed assignment#156105
serhiy-storchaka wants to merge 3 commits into
python:mainfrom
serhiy-storchaka:gh-156101-sqlite-arraysize

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Aug 20, 2026

Copy link
Copy Markdown
Member

PyLong_AsUInt32() stores 0 in the target on error, so assigning a too large value left arraysize set to 0.
The value is now converted into a local variable first, as in 3.13.

PyLong_AsUInt32() stores 0 in the target on error, so the attribute was
clobbered when the assigned value was too large.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant