FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-156101: Fix sqlite3 Cursor.arraysize on a failed assignment by serhiy-storchaka · Pull Request #156105 · python/cpython · GitHub

Repository navigation

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

Merged
serhiy-storchaka merged 3 commits into
python:mainfrom
serhiy-storchaka:gh-156101-sqlite-arraysize
Aug 21, 2026
Merged

serhiy-storchaka merged 3 commits into
python:mainfrom
serhiy-storchaka:gh-156101-sqlite-arraysize

Conversation

serhiy-storchaka commented Aug 20, 2026 •
edited by bedevere-app Bot
Loading

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.
serhiy-storchaka merged commit 53760b3 into python:main Aug 21, 2026
54 checks passed

Copy link
Copy Markdown

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15.
🐍🍒⛏🤖

serhiy-storchaka deleted the gh-156101-sqlite-arraysize branch August 21, 2026 07:13

bedevere-app Bot commented Aug 21, 2026

Copy link
Copy Markdown

GH-156156 is a backport of this pull request to the 3.15 branch.

bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Aug 21, 2026

bedevere-app Bot commented Aug 21, 2026

Copy link
Copy Markdown

GH-156157 is a backport of this pull request to the 3.14 branch.

bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Aug 21, 2026
serhiy-storchaka added a commit that referenced this pull request Aug 21, 2026
…GH-156105) (GH-156157)

PyLong_AsUInt32() stores 0 in the target on error, so the attribute was
clobbered when the assigned value was too large.
(cherry picked from commit 53760b3)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
serhiy-storchaka added a commit that referenced this pull request Oct 10, 2026
…GH-156105) (GH-156156)

PyLong_AsUInt32() stores 0 in the target on error, so the attribute was
clobbered when the assigned value was too large.
(cherry picked from commit 53760b3)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL