Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-146091: Fix NULL check in termios.tcsetwinsize#146147

Merged
kumaraditya303 merged 1 commit intopython:mainfrom
okiemute04:fix-termios-tcsetwinsize
Mar 19, 2026
Merged

gh-146091: Fix NULL check in termios.tcsetwinsize#146147
kumaraditya303 merged 1 commit intopython:mainfrom
okiemute04:fix-termios-tcsetwinsize

Conversation

@okiemute04
Copy link
Contributor

@okiemute04okiemute04 commentedMar 18, 2026
edited by bedevere-appbot
Loading

Fixes#146091

Add proper NULL checks for PySequence_GetItem results before passing
to PyLong_AsLong, this prevents SystemError when a BadSequence raises
TypeError ingetitem, the issue was that PySequence_GetItem can return NULL, which when passed to PyLong_AsLong would cause an internal error instead of propagating
the original exception.

@bedevere-app
Copy link

Most changes to Pythonrequire a NEWS entry. Add one using theblurb_it web app or theblurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply theskip news label instead.

@python-cla-bot
Copy link

python-cla-botbot commentedMar 18, 2026
edited
Loading

All commit authors signed the Contributor License Agreement.

CLA signed

Add proper NULL checks for PySequence_GetItem results before passingto PyLong_AsLong. This prevents SystemError when a BadSequence raisesTypeError in __getitem__.
@okiemute04okiemute04force-pushed thefix-termios-tcsetwinsize branch from5e8ef92 to113df89CompareMarch 19, 2026 00:11
@kumaraditya303kumaraditya303 merged commit89a154a intopython:mainMar 19, 2026
54 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@kumaraditya303kumaraditya303kumaraditya303 approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

SystemError fromtermios.tcsetwinsizepassingNULL toPyLong_AsLong

2 participants

@okiemute04@kumaraditya303

[8]ページ先頭

©2009-2026 Movatter.jp