Title: gh-146091: Fix NULL check in termios.tcsetwinsize by okiemute04 · Pull Request #146147 · python/cpython · GitHub
Open Graph Title: gh-146091: Fix NULL check in termios.tcsetwinsize by okiemute04 · Pull Request #146147 · python/cpython
X Title: gh-146091: Fix NULL check in termios.tcsetwinsize by okiemute04 · Pull Request #146147 · python/cpython
Description: Fixes #146091 Add proper NULL checks for PySequence_GetItem results before passing to PyLong_AsLong, this prevents SystemError when a BadSequence raises TypeError in getitem, 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. Issue: gh-146091
Open Graph Description: Fixes #146091 Add proper NULL checks for PySequence_GetItem results before passing to PyLong_AsLong, this prevents SystemError when a BadSequence raises TypeError in getitem, the issue was that PyS...
X Description: Fixes #146091 Add proper NULL checks for PySequence_GetItem results before passing to PyLong_AsLong, this prevents SystemError when a BadSequence raises TypeError in getitem, the issue was that PyS...
Opengraph URL: https://github.com/python/cpython/pull/146147
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:566fd2e2-5d7f-da83-80ca-468c3eaa417d |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E540:306788:499E6E:61A886:6A529642 |
| html-safe-nonce | 76e67b4985a3af69916ed0b44b3eec4215b3511d4d9d072556ee4074b5a29241 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTQwOjMwNjc4ODo0OTlFNkU6NjFBODg2OjZBNTI5NjQyIiwidmlzaXRvcl9pZCI6Ijg2NDU3NTUzNTQ4OTEyODAwMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4dccb8c225df07e1206f9f92652e2c10120e11498c64716b01edc8050fd86b7a |
| hovercard-subject-tag | pull_request:3417484030 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/146147/files |
| twitter:image | https://avatars.githubusercontent.com/u/51956662?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/51956662?s=400&v=4 |
| og:image:alt | Fixes #146091 Add proper NULL checks for PySequence_GetItem results before passing to PyLong_AsLong, this prevents SystemError when a BadSequence raises TypeError in getitem, the issue was that PyS... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width