Title: C API: Check in PyTuple_SET_ITEM() and PyList_SET_ITEM() · Issue #106168 · python/cpython · GitHub
Open Graph Title: C API: Check in PyTuple_SET_ITEM() and PyList_SET_ITEM() · Issue #106168 · python/cpython
X Title: C API: Check in PyTuple_SET_ITEM() and PyList_SET_ITEM() · Issue #106168 · python/cpython
Description: The PyTuple_SET_ITEM() and PyList_SET_ITEM() functions don't check that the index is valid. It should be checked with an assertion. Linked PRs gh-106164 gh-111480 gh-111618 gh-111683
Open Graph Description: The PyTuple_SET_ITEM() and PyList_SET_ITEM() functions don't check that the index is valid. It should be checked with an assertion. Linked PRs gh-106164 gh-111480 gh-111618 gh-111683
X Description: The PyTuple_SET_ITEM() and PyList_SET_ITEM() functions don't check that the index is valid. It should be checked with an assertion. Linked PRs gh-106164 gh-111480 gh-111618 gh-111683
Opengraph URL: https://github.com/python/cpython/issues/106168
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"C API: Check in PyTuple_SET_ITEM() and PyList_SET_ITEM()","articleBody":"The PyTuple_SET_ITEM() and PyList_SET_ITEM() functions don't check that the index is valid. It should be checked with an assertion.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-106164\n* gh-111480\n* gh-111618\n* gh-111683\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2023-06-28T00:20:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/106168/cpython/issues/106168"}
| 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:5f4290b7-107e-fcd8-aaca-61a570475a28 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AED6:35F957:38A333:4EC1E3:696A4593 |
| html-safe-nonce | 5892447bd0ef6f44de9aea70b5fed974c7b68b39ce23088e6902b22975e641b6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRUQ2OjM1Rjk1NzozOEEzMzM6NEVDMUUzOjY5NkE0NTkzIiwidmlzaXRvcl9pZCI6Ijg2MjQ4MDcyMDAwNDg1MzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cd3ed7738d96414d9a816cd786e340166580d3367c0603d1b477cacd298b73c5 |
| hovercard-subject-tag | issue:1777940132 |
| 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/106168/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e565b8267f20aa68bc174944fd87225f1463ffdd0b0951b8f0b4e1c727851a3d/python/cpython/issues/106168 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e565b8267f20aa68bc174944fd87225f1463ffdd0b0951b8f0b4e1c727851a3d/python/cpython/issues/106168 |
| og:image:alt | The PyTuple_SET_ITEM() and PyList_SET_ITEM() functions don't check that the index is valid. It should be checked with an assertion. Linked PRs gh-106164 gh-111480 gh-111618 gh-111683 |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vstinner |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3f871c8e07f0ae1886fa8dac284166d28b09ad5bada6476fc10b674e489788ef |
| 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 | 63c426b30d262aba269ef14c40e3c817b384cd61 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width