René's URL Explorer Experiment


Title: fs: fix abort on negative zero write length by christianaurichzm · Pull Request #67524 · nodejs/node · GitHub

Open Graph Title: fs: fix abort on negative zero write length by christianaurichzm · Pull Request #67524 · nodejs/node

X Title: fs: fix abort on negative zero write length by christianaurichzm · Pull Request #67524 · nodejs/node

Description: Node.js JavaScript runtime ✨🐢🚀✨. Contribute to nodejs/node development by creating an account on GitHub.

Open Graph Description: fs.write(), fs.writeSync() and filehandle.write() abort the process when the length is -0, either positional or as options.length. This also happens on v22.23.1: $ node -e "fs.writeSync(1, Buf...

X Description: fs.write(), fs.writeSync() and filehandle.write() abort the process when the length is -0, either positional or as options.length. This also happens on v22.23.1: $ node -e "fs.writeSync(1,...

Opengraph URL: https://github.com/nodejs/node/pull/67524

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:352d793c-0fde-b6a3-9723-649bafdf3db5
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCD18:3DA8B4:377011:4B315E:6B061BD8
html-safe-noncecc9cd19f3d6049feabdf29f6732aa76eeee8d3893dae61283c7bf8eca455a339
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDE4OjNEQThCNDozNzcwMTE6NEIzMTVFOjZCMDYxQkQ4IiwidmlzaXRvcl9pZCI6IjU1MTc0MzU0ODAyMjk4NzczNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca79bbe30afc95fe0d5e6579002d7d4f798cc1be1f6f23f25e9871aa2061be6b9
hovercard-subject-tagpull_request:5341288099
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/nodejs/node/67524/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/1aa5b1c59d732f992de910436cc8c08b833e23d46c9315e6380aa30d01a6f6bd/nodejs/node/pull/67524
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1aa5b1c59d732f992de910436cc8c08b833e23d46c9315e6380aa30d01a6f6bd/nodejs/node/pull/67524
og:image:altfs.write(), fs.writeSync() and filehandle.write() abort the process when the length is -0, either positional or as options.length. This also happens on v22.23.1: $ node -e "fs.writeSync(1, Buf...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamechristianaurichzm
hostnamegithub.com
expected-hostnamegithub.com
None9a7c5824b75ea2ec5e3de73a483229c7bb9f32a774ffd401f010dd9bacf1483d
turbo-cache-controlno-cache
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseb25c3080e84402f75431d8dc7a96b2635219cec7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/nodejs/node/pull/67524#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F67524
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F67524
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/pull/67524
Reloadhttps://github.com/nodejs/node/pull/67524
Reloadhttps://github.com/nodejs/node/pull/67524
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues630 (630)https://github.com/nodejs/node/issues
Pull requests660 (660)https://github.com/nodejs/node/pulls
Actionshttps://github.com/nodejs/node/actions
Projectshttps://github.com/nodejs/node/projects
Security and qualityhttps://github.com/nodejs/node/security
Insightshttps://github.com/nodejs/node/insights
https://github.com/nodejs/node
nodejs-github-bothttps://github.com/nodejs-github-bot
nodejs:mainhttps://github.com/nodejs/node/tree/main
christianaurichzm:fs-write-length-negative-zerohttps://github.com/christianaurichzm/node/tree/fs-write-length-negative-zero
Conversationhttps://github.com/nodejs/node/pull/67524
Commits1 (1)https://github.com/nodejs/node/pull/67524/commits
Checkshttps://github.com/nodejs/node/pull/67524/checks
Files changedhttps://github.com/nodejs/node/pull/67524/files
fs: fix abort on negative zero write lengthhttps://github.com/nodejs/node/pull/67524#top
nodejs-github-bothttps://github.com/nodejs-github-bot
nodejs:mainhttps://github.com/nodejs/node/tree/main
christianaurichzm:fs-write-length-negative-zerohttps://github.com/christianaurichzm/node/tree/fs-write-length-negative-zero
https://github.com/christianaurichzm
christianaurichzmhttps://github.com/christianaurichzm
Nov 16, 2026https://github.com/nodejs/node/pull/67524#issue-6426291670
the binding requireshttps://github.com/nodejs/node/blob/d3c4048962853bb12359682381001ab63dced4ce/src/node_file.cc#L3086
#65888https://github.com/nodejs/node/pull/65888
Please reload this pagehttps://github.com/nodejs/node/pull/67524
https://github.com/nodejs-github-bot
nodejs-github-bothttps://github.com/nodejs-github-bot
fs https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Afs
needs-ci https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Aneeds-ci
Nov 16, 2026https://github.com/nodejs/node/pull/67524#event-36303122267
https://github.com/apps/codecov
codecovhttps://github.com/apps/codecov
Nov 16, 2026https://github.com/nodejs/node/pull/67524#issuecomment-6925621586
Please reload this pagehttps://github.com/nodejs/node/pull/67524
Codecovhttps://app.codecov.io/gh/nodejs/node/pull/67524?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nodejs
5884b8ehttps://app.codecov.io/gh/nodejs/node/commit/5884b8e766f486fcf92202e0c31f7a80204ce61c?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nodejs
557b254https://app.codecov.io/gh/nodejs/node/commit/557b254994dbb2da9edb6ab708c2f54495b4f4a0?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nodejs
Files with missing lineshttps://app.codecov.io/gh/nodejs/node/pull/67524?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nodejs
lib/fs.jshttps://app.codecov.io/gh/nodejs/node/pull/67524?src=pr&el=tree&filepath=lib%2Ffs.js&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nodejs#diff-bGliL2ZzLmpz
lib/internal/fs/promises.jshttps://app.codecov.io/gh/nodejs/node/pull/67524?src=pr&el=tree&filepath=lib%2Finternal%2Ffs%2Fpromises.js&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nodejs#diff-bGliL2ludGVybmFsL2ZzL3Byb21pc2VzLmpz
30 files with indirect coverage changeshttps://app.codecov.io/gh/nodejs/node/pull/67524/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nodejs
Test Analyticshttps://docs.codecov.com/docs/test-analytics
JS Bundle Analysishttps://docs.codecov.com/docs/javascript-bundle-analysis
Please reload this pagehttps://github.com/nodejs/node/pull/67524
https://github.com/christianaurichzm
christianaurichzmhttps://github.com/christianaurichzm
meixghttps://github.com/meixg
November 17, 2026 21:45https://github.com/nodejs/node/pull/67524#event-36459173655
https://github.com/vedchaudhari
vedchaudharihttps://github.com/vedchaudhari
Nov 18, 2026https://github.com/nodejs/node/pull/67524#issuecomment-6977688157
Please reload this pagehttps://github.com/nodejs/node/pull/67524
https://github.com/jasnell
jasnellhttps://github.com/jasnell
Nov 18, 2026 https://github.com/nodejs/node/pull/67524#pullrequestreview-5956474711
View reviewed changes https://github.com/nodejs/node/pull/67524/files
https://github.com/jasnell
jasnellhttps://github.com/jasnell
request-ci https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Arequest-ci
Nov 18, 2026https://github.com/nodejs/node/pull/67524#event-36525568913
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
request-ci https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Arequest-ci
Nov 18, 2026https://github.com/nodejs/node/pull/67524#event-36526232588
https://github.com/nodejs-github-bot
nodejs-github-bothttps://github.com/nodejs-github-bot
Nov 18, 2026https://github.com/nodejs/node/pull/67524#issuecomment-6978636917
https://ci.nodejs.org/job/node-test-pull-request/79253/https://ci.nodejs.org/job/node-test-pull-request/79253/
Please reload this pagehttps://github.com/nodejs/node/pull/67524
https://github.com/christianaurichzm
christianaurichzmhttps://github.com/christianaurichzm
author ready https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22author%20ready%22
commit-queue https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Acommit-queue
Nov 18, 2026https://github.com/nodejs/node/pull/67524#event-36565760051
https://github.com/nodejs-github-bot
nodejs-github-bothttps://github.com/nodejs-github-bot
lacks-second-approval https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Alacks-second-approval
commit-queue-failed https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Acommit-queue-failed
commit-queue https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Acommit-queue
lacks-second-approval https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Alacks-second-approval
Nov 19, 2026https://github.com/nodejs/node/pull/67524#event-36693313845
https://github.com/nodejs-github-bot
nodejs-github-bothttps://github.com/nodejs-github-bot
Nov 20, 2026https://github.com/nodejs/node/pull/67524#issuecomment-7031439892
commit-queue-failedhttps://github.com/nodejs/node/labels/commit-queue-failed
commit-queuehttps://github.com/nodejs/node/labels/commit-queue
View workflow runhttps://github.com/nodejs/node/actions/runs/44681816170
Please reload this pagehttps://github.com/nodejs/node/pull/67524
https://github.com/christianaurichzm
fs: fix abort on negative zero write lengthhttps://github.com/nodejs/node/pull/67524/commits/557b254994dbb2da9edb6ab708c2f54495b4f4a0
557b254https://github.com/nodejs/node/pull/67524/commits/557b254994dbb2da9edb6ab708c2f54495b4f4a0
https://github.com/christianaurichzm
christianaurichzmhttps://github.com/christianaurichzm
force-pushedhttps://github.com/nodejs/node/compare/a25fb60a418c125a3ae431f209230ee19f1ccdbf..557b254994dbb2da9edb6ab708c2f54495b4f4a0
a25fb60https://github.com/nodejs/node/commit/a25fb60a418c125a3ae431f209230ee19f1ccdbf
557b254https://github.com/nodejs/node/commit/557b254994dbb2da9edb6ab708c2f54495b4f4a0
Compare https://github.com/nodejs/node/compare/a25fb60a418c125a3ae431f209230ee19f1ccdbf..557b254994dbb2da9edb6ab708c2f54495b4f4a0
November 20, 2026 09:47https://github.com/nodejs/node/pull/67524#event-36754517803
https://github.com/christianaurichzm
christianaurichzmhttps://github.com/christianaurichzm
commit-queue-failed https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Acommit-queue-failed
author ready https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22author%20ready%22
Nov 20, 2026https://github.com/nodejs/node/pull/67524#event-36754561377
https://github.com/nodejs-github-bot
nodejs-github-bothttps://github.com/nodejs-github-bot
Nov 20, 2026https://github.com/nodejs/node/pull/67524#issuecomment-7036442567
Please reload this pagehttps://github.com/nodejs/node/pull/67524
https://ci.nodejs.org/job/node-test-pull-request/79337/https://ci.nodejs.org/job/node-test-pull-request/79337/
Please reload this pagehttps://github.com/nodejs/node/pull/67524
https://github.com/christianaurichzm
christianaurichzmhttps://github.com/christianaurichzm
Nov 20, 2026https://github.com/nodejs/node/pull/67524#issuecomment-7040717947
#67567https://github.com/nodejs/node/pull/67567
@jasnellhttps://github.com/jasnell
@LiviaMedeiroshttps://github.com/LiviaMedeiros
Please reload this pagehttps://github.com/nodejs/node/pull/67524
https://github.com/christianaurichzm
christianaurichzmhttps://github.com/christianaurichzm
lpincahttps://github.com/lpinca
November 22, 2026 09:00https://github.com/nodejs/node/pull/67524#event-36914187032
https://github.com/lpinca
lpincahttps://github.com/lpinca
Nov 22, 2026 https://github.com/nodejs/node/pull/67524#pullrequestreview-6011716062
View reviewed changes https://github.com/nodejs/node/pull/67524/files/557b254994dbb2da9edb6ab708c2f54495b4f4a0
https://github.com/jasnell
jasnellhttps://github.com/jasnell
Nov 22, 2026 https://github.com/nodejs/node/pull/67524#pullrequestreview-6014242977
View reviewed changes https://github.com/nodejs/node/pull/67524/files/557b254994dbb2da9edb6ab708c2f54495b4f4a0
https://github.com/christianaurichzm
christianaurichzmhttps://github.com/christianaurichzm
author ready https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22author%20ready%22
commit-queue https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Acommit-queue
Nov 22, 2026https://github.com/nodejs/node/pull/67524#event-36950110965
https://github.com/nodejs-github-bot
nodejs-github-bothttps://github.com/nodejs-github-bot
2566f1bhttps://github.com/nodejs/node/commit/2566f1b73da7f6acc82198c90798e5b920a70d7b
Nov 22, 2026https://github.com/nodejs/node/pull/67524#event-36950968925
Please reload this pagehttps://github.com/nodejs/node/pull/67524
https://github.com/nodejs-github-bot
nodejs-github-bothttps://github.com/nodejs-github-bot
Nov 22, 2026https://github.com/nodejs/node/pull/67524#issuecomment-7086647206
2566f1bhttps://github.com/nodejs/node/commit/2566f1b73da7f6acc82198c90798e5b920a70d7b
Please reload this pagehttps://github.com/nodejs/node/pull/67524
https://github.com/nodejs-github-bot
nodejs-github-bothttps://github.com/nodejs-github-bot
commit-queue https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Acommit-queue
Nov 22, 2026https://github.com/nodejs/node/pull/67524#event-36950972269
aduh95https://github.com/aduh95
Nov 23, 2026 https://github.com/nodejs/node/pull/67524#ref-commit-5062ac2
https://github.com/christianaurichzm
https://github.com/aduh95
fs: fix abort on negative zero write lengthhttps://github.com/nodejs/node/commit/5062ac2f9a3887ceb7d5dd763ae06be73841bc03
5062ac2https://github.com/nodejs/node/commit/5062ac2f9a3887ceb7d5dd763ae06be73841bc03
#67524https://github.com/nodejs/node/pull/67524
#65888https://github.com/nodejs/node/pull/65888
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Nov 24, 2026 https://github.com/nodejs/node/pull/67524#ref-pullrequest-6587887603
2026-11-25, Version 27.0.0-alpha.0.2.0 (Alpha) #67757 https://github.com/nodejs/node/pull/67757
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F67524
https://github.com/jasnell
jasnell https://github.com/jasnell
https://github.com/nodejs/node/pull/67524/files/557b254994dbb2da9edb6ab708c2f54495b4f4a0
https://github.com/lpinca
lpinca https://github.com/lpinca
https://github.com/nodejs/node/pull/67524/files/557b254994dbb2da9edb6ab708c2f54495b4f4a0
https://github.com/meixg
meixg https://github.com/meixg
Please reload this pagehttps://github.com/nodejs/node/pull/67524
author ready https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22author%20ready%22
fs https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Afs
needs-ci https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Aneeds-ci
Please reload this pagehttps://github.com/nodejs/node/pull/67524
https://github.com/christianaurichzm
https://github.com/vedchaudhari
https://github.com/nodejs-github-bot
https://github.com/jasnell
https://github.com/lpinca
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.