Title: `cursesmodule` uses `winobj` which might be `NULL` · Issue #123913 · python/cpython · GitHub
Open Graph Title: `cursesmodule` uses `winobj` which might be `NULL` · Issue #123913 · python/cpython
X Title: `cursesmodule` uses `winobj` which might be `NULL` · Issue #123913 · python/cpython
Description: Bug report Here's the problematic code: cpython/Modules/_cursesmodule.c Lines 3365 to 3367 in a2d0818 winobj = (PyCursesWindowObject *)PyCursesWindow_New(win, NULL); screen_encoding = winobj->encoding; return (PyObject *)winobj; Why is i...
Open Graph Description: Bug report Here's the problematic code: cpython/Modules/_cursesmodule.c Lines 3365 to 3367 in a2d0818 winobj = (PyCursesWindowObject *)PyCursesWindow_New(win, NULL); screen_encoding = winobj->encod...
X Description: Bug report Here's the problematic code: cpython/Modules/_cursesmodule.c Lines 3365 to 3367 in a2d0818 winobj = (PyCursesWindowObject *)PyCursesWindow_New(win, NULL); screen_encoding = winobj-&g...
Opengraph URL: https://github.com/python/cpython/issues/123913
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`cursesmodule` uses `winobj` which might be `NULL`","articleBody":"# Bug report\n\nHere's the problematic code: https://github.com/python/cpython/blob/a2d0818c85c985a54f358e1d9ea7ce3eb0c5acca/Modules/_cursesmodule.c#L3365-L3367\n\nWhy is it problematic? Because `PyCursesWindow_New` can return `NULL` here: https://github.com/python/cpython/blob/a2d0818c85c985a54f358e1d9ea7ce3eb0c5acca/Modules/_cursesmodule.c#L708-L712\n\nSo, `winobj->encoding` of `NULL` is not good :(\n\nI will send a PR.\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-123914\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/sobolevn","@type":"Person","name":"sobolevn"},"datePublished":"2024-09-10T17:06:37Z","url":"https://github.com/python/cpython/issues/123913"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9ea33395-593e-1362-f5e9-48b4e9cb6452 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DF20:3F1E11:CDB5C:1160FF:6B066A4F |
| html-safe-nonce | 391b1c225867e463baf5e719b45cf6ccdd926886bcc02cd3195b445da32c8a2a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjIwOjNGMUUxMTpDREI1QzoxMTYwRkY6NkIwNjZBNEYiLCJ2aXNpdG9yX2lkIjoiNzI4MzYxODYxOTk3NDkwNDQwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9e2dfe8aa4958ff517d9edb60cebce64a4b4af78b9ddf7c4b97a0f835a5da16e |
| hovercard-subject-tag | issue:2517022278 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/cpython/123913/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bb4e87b32fbfe8b6ed6bcae58558c9308424d77968f88bf267e40d2500c54e77/python/cpython/issues/123913 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bb4e87b32fbfe8b6ed6bcae58558c9308424d77968f88bf267e40d2500c54e77/python/cpython/issues/123913 |
| og:image:alt | Bug report Here's the problematic code: cpython/Modules/_cursesmodule.c Lines 3365 to 3367 in a2d0818 winobj = (PyCursesWindowObject *)PyCursesWindow_New(win, NULL); screen_encoding = winobj->encod... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sobolevn |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6324e6ac990fb6befbec840cc0e102a1071c339bfe8f9826bb12de2e3ba1d297 |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7f0aa75f4141d440c6110dc31af7ea7797abb6c4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width