Title: Lack of nullptr check in /src/node_file.cc ReadDir · Issue #59266 · nodejs/node · GitHub
Open Graph Title: Lack of nullptr check in /src/node_file.cc ReadDir · Issue #59266 · nodejs/node
X Title: Lack of nullptr check in /src/node_file.cc ReadDir · Issue #59266 · nodejs/node
Description: Version main Platform any Subsystem No response What steps will reproduce the bug? In function ReadDir not checked for nullptr. It may cause null pointer dereference. node/src/node_file.cc Lines 1994 to 2000 in 0eeccd2 FSReqBase* req_wra...
Open Graph Description: Version main Platform any Subsystem No response What steps will reproduce the bug? In function ReadDir not checked for nullptr. It may cause null pointer dereference. node/src/node_file.cc Lines 19...
X Description: Version main Platform any Subsystem No response What steps will reproduce the bug? In function ReadDir not checked for nullptr. It may cause null pointer dereference. node/src/node_file.cc Lines 19...
Opengraph URL: https://github.com/nodejs/node/issues/59266
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Lack of nullptr check in /src/node_file.cc ReadDir","articleBody":"### Version\n\nmain\n\n### Platform\n\n```text\nany\n```\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\nIn function ReadDir not checked for nullptr. It may cause null pointer dereference.\n\nhttps://github.com/nodejs/node/blob/0eeccd281c9336381849dcdc299c02baf1f8b7af/src/node_file.cc#L1994-L2000\n\n### How often does it reproduce? Is there a required condition?\n\nGetReqWrap returns null\n\n### What is the expected behavior? Why is that the expected behavior?\n\nChecking result of GetReqWrap against nullptr\n\n### What do you see instead?\n\nLack of check\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/F3lixTheCat","@type":"Person","name":"F3lixTheCat"},"datePublished":"2025-07-29T00:16:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/59266/node/issues/59266"}
| 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:a3347bdf-0d05-c9b8-a195-db5cbc1df378 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E636:6A6D7:1A4D319:251748E:6A4CC575 |
| html-safe-nonce | 27985b6c9d6f138b6e658883f1ce16977c3adb858d5321cbef4ff8241878408f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjM2OjZBNkQ3OjFBNEQzMTk6MjUxNzQ4RTo2QTRDQzU3NSIsInZpc2l0b3JfaWQiOiI4NzQ0ODU2NTIwODcxNDI5NDkzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 443d5222d8e0f4ce93bdd941885a1b0de605117df3bac92043f8d612244cfaa8 |
| hovercard-subject-tag | issue:3271578941 |
| 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/nodejs/node/59266/issue_layout |
| twitter:image | https://opengraph.githubassets.com/db5eb0bd8d39b3828631afd32d04c0a111dc2f17051efb9e48f8f78c6ef7cea4/nodejs/node/issues/59266 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/db5eb0bd8d39b3828631afd32d04c0a111dc2f17051efb9e48f8f78c6ef7cea4/nodejs/node/issues/59266 |
| og:image:alt | Version main Platform any Subsystem No response What steps will reproduce the bug? In function ReadDir not checked for nullptr. It may cause null pointer dereference. node/src/node_file.cc Lines 19... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | F3lixTheCat |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| 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 | d0da0eb92994395299ed4450bf67b0373005be36 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width