Title: gh-106168: Check allocated instead of size index bounds in PyList_SET_ITEM() by scoder · Pull Request #111480 · python/cpython · GitHub
Open Graph Title: gh-106168: Check allocated instead of size index bounds in PyList_SET_ITEM() by scoder · Pull Request #111480 · python/cpython
X Title: gh-106168: Check allocated instead of size index bounds in PyList_SET_ITEM() by scoder · Pull Request #111480 · python/cpython
Description: Check the index bound assertions in PyList_SET_ITEM() against [0:allocated] instead of [0:size] to re-allow valid use cases that assign within the allocated area. First increasing the size before setting a new value seems less safe and clean than allowing access to the allocated area and adjusting the size on successful updates. Issue: gh-106168
Open Graph Description: Check the index bound assertions in PyList_SET_ITEM() against [0:allocated] instead of [0:size] to re-allow valid use cases that assign within the allocated area. First increasing the size before s...
X Description: Check the index bound assertions in PyList_SET_ITEM() against [0:allocated] instead of [0:size] to re-allow valid use cases that assign within the allocated area. First increasing the size before s...
Opengraph URL: https://github.com/python/cpython/pull/111480
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:31c3a5c1-87e8-784a-61f8-abe7caf36cc1 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8B9C:1B7E6F:1171BF0:1813F93:696A8DF9 |
| html-safe-nonce | 2f52c9e521a6569f6f856236ec7d9891c914bc573d99cbdc020fd50fa8e12863 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjlDOjFCN0U2RjoxMTcxQkYwOjE4MTNGOTM6Njk2QThERjkiLCJ2aXNpdG9yX2lkIjoiMTAyMTgzOTg2MDQxNTc2MTkxMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9fb316726a9af95dec30ee305656888986570a0d39f2ac9349fa2a90e641eb1f |
| hovercard-subject-tag | pull_request:1578530031 |
| 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/111480/files |
| twitter:image | https://avatars.githubusercontent.com/u/491659?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/491659?s=400&v=4 |
| og:image:alt | Check the index bound assertions in PyList_SET_ITEM() against [0:allocated] instead of [0:size] to re-allow valid use cases that assign within the allocated area. First increasing the size before s... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4dd496afc954da9c207b2d9fbe86e3074619f565754aa1d9274aec30d9e5b8d7 |
| 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 |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 31496a13b80a2f6ad77d6c617ee2255a3545b539 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width