Title: gh-151773: NULL-check token_new() in PyContextVar_Set by bhuvi27 · Pull Request #151836 · python/cpython · GitHub
Open Graph Title: gh-151773: NULL-check token_new() in PyContextVar_Set by bhuvi27 · Pull Request #151836 · python/cpython
X Title: gh-151773: NULL-check token_new() in PyContextVar_Set by bhuvi27 · Pull Request #151836 · python/cpython
Description: Fixes #151773. token_new() can return NULL on OOM, but PyContextVar_Set went straight into contextvar_set() and then Py_DECREF(tok) on the error path. Added an early return when tok is NULL. Issue: gh-151773
Open Graph Description: Fixes #151773. token_new() can return NULL on OOM, but PyContextVar_Set went straight into contextvar_set() and then Py_DECREF(tok) on the error path. Added an early return when tok is NULL. Issu...
X Description: Fixes #151773. token_new() can return NULL on OOM, but PyContextVar_Set went straight into contextvar_set() and then Py_DECREF(tok) on the error path. Added an early return when tok is NULL. Issu...
Opengraph URL: https://github.com/python/cpython/pull/151836
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:4ed252f7-7472-9143-c649-71dca655f6e8 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A20A:30A84D:247439:30B159:6A557DB3 |
| html-safe-nonce | a097f06472ff1f8b33e35510f023347a3c6ad648a0b99cb28afc480163e7d2d3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjBBOjMwQTg0RDoyNDc0Mzk6MzBCMTU5OjZBNTU3REIzIiwidmlzaXRvcl9pZCI6IjM3NTc2NTE3MzIxMTQ4MDAwNTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a286ebc2efc9461de08591ac8783fcd360dc05d10c5e12ac9bf1316a02a38136 |
| hovercard-subject-tag | pull_request:3906490538 |
| 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/151836/files |
| twitter:image | https://avatars.githubusercontent.com/u/15888476?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/15888476?s=400&v=4 |
| og:image:alt | Fixes #151773. token_new() can return NULL on OOM, but PyContextVar_Set went straight into contextvar_set() and then Py_DECREF(tok) on the error path. Added an early return when tok is NULL. Issu... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| 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 | 617ea94e2807dc3052601c560530bb3f8259bc9a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width