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/commits/:range(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:f046aa44-ad58-b0c7-e1cd-4dd57d1225e4 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CE18:16F498:DEA444:12B0B21:6994F38F |
| html-safe-nonce | 3e8538320db177b57b3443b6609e4e65230ddab86c317f45604833a5d4edb241 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTE4OjE2RjQ5ODpERUE0NDQ6MTJCMEIyMTo2OTk0RjM4RiIsInZpc2l0b3JfaWQiOiI0NTQ5MzcwNDgxNDM1MDE0MDMxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5b95f4638e2da2d66fb47ce87c6f7a5546e1a1d15d10dcd4a7e5e68b42eda3ef |
| 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/commits/eba62a3d8c21fa2699b02b72bdbef97c49fb1c6b |
| 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 | 4bd759bc5f83244e2a0de29b937365905c0fefd238b6f077c24a49830375b4df |
| 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 | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 48c364f96c0b8ac95ea493e8f02d59e2a5af92a3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width