Title: potential nullptr dereference + use of uninitialized memory in fileutils · Issue #102281 · python/cpython · GitHub
Open Graph Title: potential nullptr dereference + use of uninitialized memory in fileutils · Issue #102281 · python/cpython
X Title: potential nullptr dereference + use of uninitialized memory in fileutils · Issue #102281 · python/cpython
Description: Bug report cpython/Python/fileutils.c Lines 2161 to 2162 in 6daf42b join_relfile(filename, bufsize, dirname, relfile); return filename; can lead to use of uninitialized memory when join_relfile fails. cpython/Python/fileutils.c Lines 219...
Open Graph Description: Bug report cpython/Python/fileutils.c Lines 2161 to 2162 in 6daf42b join_relfile(filename, bufsize, dirname, relfile); return filename; can lead to use of uninitialized memory when join_relfile fai...
X Description: Bug report cpython/Python/fileutils.c Lines 2161 to 2162 in 6daf42b join_relfile(filename, bufsize, dirname, relfile); return filename; can lead to use of uninitialized memory when join_relfile fai...
Opengraph URL: https://github.com/python/cpython/issues/102281
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"potential nullptr dereference + use of uninitialized memory in fileutils","articleBody":"# Bug report\r\n\r\nhttps://github.com/python/cpython/blob/6daf42b28e1c6d5f0c1a6350cfcc382789e11293/Python/fileutils.c#L2161-L2162 can lead to use of uninitialized memory when `join_relfile` fails.\r\n\r\nhttps://github.com/python/cpython/blob/6daf42b28e1c6d5f0c1a6350cfcc382789e11293/Python/fileutils.c#L2197-L2199 in combination with https://github.com/python/cpython/blob/6daf42b28e1c6d5f0c1a6350cfcc382789e11293/Modules/getpath.c#L450\r\n\r\nleads to a nullptr dereference.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-102282\n* gh-103040\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/maxbachmann","@type":"Person","name":"maxbachmann"},"datePublished":"2023-02-26T13:41:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/102281/cpython/issues/102281"}
| 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:b4e73ea2-15dc-0b80-18cb-394279037d29 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E762:22308E:C76D95:1199CCA:696A636A |
| html-safe-nonce | 49d64cde718260c4674cb521407933b26fe3ae5535229467f54e6cba01670152 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzYyOjIyMzA4RTpDNzZEOTU6MTE5OUNDQTo2OTZBNjM2QSIsInZpc2l0b3JfaWQiOiI1NjU3NTI1MTg1NDMwNTc4MDI2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9cb64c6c295e2fc5c2d33f26b73376eb33814639d1aac991de6cdbf063994151 |
| hovercard-subject-tag | issue:1600063020 |
| 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/102281/issue_layout |
| twitter:image | https://opengraph.githubassets.com/35949303ed66bff61f349a6ec3a1cba74bfcdc56dada18034cee17c97f2f6924/python/cpython/issues/102281 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/35949303ed66bff61f349a6ec3a1cba74bfcdc56dada18034cee17c97f2f6924/python/cpython/issues/102281 |
| og:image:alt | Bug report cpython/Python/fileutils.c Lines 2161 to 2162 in 6daf42b join_relfile(filename, bufsize, dirname, relfile); return filename; can lead to use of uninitialized memory when join_relfile fai... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | maxbachmann |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9b7735a184970dd9333b2cbe036c8f3c0a9108c64aaa93827c5a64fc70993392 |
| 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 | 87cbd411c2982752221b5751d583a515b23bf5fa |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width