Title: gh-99240: Reset pointer to NULL when the pointed memory is freed in argument parsing by colorfulappl · Pull Request #99890 · python/cpython · GitHub
Open Graph Title: gh-99240: Reset pointer to NULL when the pointed memory is freed in argument parsing by colorfulappl · Pull Request #99890 · python/cpython
X Title: gh-99240: Reset pointer to NULL when the pointed memory is freed in argument parsing by colorfulappl · Pull Request #99890 · python/cpython
Description: In the family of _PyArg_Parse functions, pointers can be passed in as arguments to store the parsed PyArgs. If a pointer is assigned to newly allocated memory and the memory is freed as a result of an error while parsing the subsequent PyArgs, the pointer should be set to NULL; otherwise, it leaks the freed memory. Issue: gh-99240
Open Graph Description: In the family of _PyArg_Parse functions, pointers can be passed in as arguments to store the parsed PyArgs. If a pointer is assigned to newly allocated memory and the memory is freed as a result of...
X Description: In the family of _PyArg_Parse functions, pointers can be passed in as arguments to store the parsed PyArgs. If a pointer is assigned to newly allocated memory and the memory is freed as a result of...
Opengraph URL: https://github.com/python/cpython/pull/99890
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:b54aad2f-7abf-078a-3ba6-342856200389 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D586:1301FE:109C7AD:162D468:696992CC |
| html-safe-nonce | 5019f144e96c2749606cb517f66efc46248a31bc12056901bdaeac8a6c0de799 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTg2OjEzMDFGRToxMDlDN0FEOjE2MkQ0Njg6Njk2OTkyQ0MiLCJ2aXNpdG9yX2lkIjoiODI0Mzc4MTcyNjAyMjI0MzAyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e2031a9670d044501a8bd48c118d3c479466adec253e934c725b010bbc38190d |
| hovercard-subject-tag | pull_request:1140048899 |
| 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/99890/files |
| twitter:image | https://avatars.githubusercontent.com/u/22052108?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/22052108?s=400&v=4 |
| og:image:alt | In the family of _PyArg_Parse functions, pointers can be passed in as arguments to store the parsed PyArgs. If a pointer is assigned to newly allocated memory and the memory is freed as a result of... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751 |
| 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 | af80af7cc9e3de9c336f18b208a600950a3c187c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width