René's URL Explorer Experiment


Title: buffer: pad aligned allocations by a multiple of 8 by lazerg · Pull Request #65605 · nodejs/node · GitHub

Open Graph Title: buffer: pad aligned allocations by a multiple of 8 by lazerg · Pull Request #65605 · nodejs/node

X Title: buffer: pad aligned allocations by a multiple of 8 by lazerg · Pull Request #65605 · nodejs/node

Description: Reaching an aligned start only needs alignment - 1 extra bytes, but padding by exactly that much leaves the Buffer.allocUnsafe() pool sitting in a 65599 byte ArrayBuffer, so a pooled buffer no longer ends on an element boundary of it. new Uint32Array(buf.buffer, buf.byteOffset) has thrown a RangeError since v26.8.0 as a result. Pad by a multiple of 8 instead. Backing store addresses are 8 byte aligned too, so what is left after the buffer stays a whole number of elements, as it was before v26.8.0. The accepted size drops by one byte for alignments above 8, since that much more is now allocated. Fixes: #65601

Open Graph Description: Reaching an aligned start only needs alignment - 1 extra bytes, but padding by exactly that much leaves the Buffer.allocUnsafe() pool sitting in a 65599 byte ArrayBuffer, so a pooled buffer no long...

X Description: Reaching an aligned start only needs alignment - 1 extra bytes, but padding by exactly that much leaves the Buffer.allocUnsafe() pool sitting in a 65599 byte ArrayBuffer, so a pooled buffer no long...

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

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:5fae7ee8-77d0-2911-92dd-23a41751c5e4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDC6C:2463B8:10679FE:156ABDF:6AED5F43
html-safe-noncef71b5e9d44b5e9824d83b24a3b1714478efacafbe22ffc0bfb95a93deccab5f5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzZDOjI0NjNCODoxMDY3OUZFOjE1NkFCREY6NkFFRDVGNDMiLCJ2aXNpdG9yX2lkIjoiODUwODgzMjY4MzM5MzkwMDM1NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac414a247f6e8a61ca36161e466f73c6d5596e6ff96c1147ae22e9e52eb10cf611
hovercard-subject-tagpull_request:4379917367
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/nodejs/node/pull/65605/files
twitter:imagehttps://avatars.githubusercontent.com/u/20501725?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/20501725?s=400&v=4
og:image:altReaching an aligned start only needs alignment - 1 extra bytes, but padding by exactly that much leaves the Buffer.allocUnsafe() pool sitting in a 65599 byte ArrayBuffer, so a pooled buffer no long...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None56fb42677ae87ed3e64410323d67980aa65d0485568a7858f874e7edfc6d1c11
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9c9a37e2423ed382cf39f70b5aa4b4858b40a3b0
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodejs/node/pull/65605/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F65605%2Ffiles
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%2F65605%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/pull/65605/files
Reloadhttps://github.com/nodejs/node/pull/65605/files
Reloadhttps://github.com/nodejs/node/pull/65605/files
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues654 (654)https://github.com/nodejs/node/issues
Pull requests662 (662)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/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fnodejs%2Fnode%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fnodejs%2Fnode%2Fissues%2Fnew%2Fchoose
nodejs-github-bothttps://github.com/nodejs-github-bot
nodejs:mainhttps://github.com/nodejs/node/tree/main
lazerg:fix/issue-65601-pool-alignmenthttps://github.com/lazerg/node/tree/fix/issue-65601-pool-alignment
Conversation 5 https://github.com/nodejs/node/pull/65605
Commits 1 https://github.com/nodejs/node/pull/65605/commits
Checks 42 https://github.com/nodejs/node/pull/65605/checks
Files changed https://github.com/nodejs/node/pull/65605/files
Please reload this pagehttps://github.com/nodejs/node/pull/65605/files
buffer: pad aligned allocations by a multiple of 8 https://github.com/nodejs/node/pull/65605/files#top
Show all changes 1 commit https://github.com/nodejs/node/pull/65605/files
89195be buffer: pad aligned allocations by a multiple of 8 lazerg Aug 27, 2026 https://github.com/nodejs/node/pull/65605/commits/89195be1a4935234dfff25da4531004cfde8261f
Clear filters https://github.com/nodejs/node/pull/65605/files
Please reload this pagehttps://github.com/nodejs/node/pull/65605/files
Please reload this pagehttps://github.com/nodejs/node/pull/65605/files
buffer.md https://github.com/nodejs/node/pull/65605/files#diff-2aeb90ba4258a1154f8558dc18c7ad46778ac0bb479f564fe96853d35303bca0
buffer.js https://github.com/nodejs/node/pull/65605/files#diff-3c2cd5c512dd026a7765b6b2ae3f85785d3b7ea3795e11949892b7b73beee630
buffer.js https://github.com/nodejs/node/pull/65605/files#diff-ec53d27b3c64c43cc2d4773dd88046ebb149e3d89e31d838df3252c8d5de89ad
node_buffer.cc https://github.com/nodejs/node/pull/65605/files#diff-81f77f34c4f5b8cc35f1a506808b94e2a281f3341c0f1a38ef2b8a8ba730b22b
test-buffer-alloc-alignment.js https://github.com/nodejs/node/pull/65605/files#diff-b0e3302ecff7b4b6c36466827e51101e02527feefd64e34da09b817567a1fba5
doc/api/buffer.mdhttps://github.com/nodejs/node/pull/65605/files#diff-2aeb90ba4258a1154f8558dc18c7ad46778ac0bb479f564fe96853d35303bca0
View file https://github.com/lazerg/node/blob/89195be1a4935234dfff25da4531004cfde8261f/doc/api/buffer.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/65605/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/65605/files#diff-2aeb90ba4258a1154f8558dc18c7ad46778ac0bb479f564fe96853d35303bca0
https://github.com/nodejs/node/pull/65605/files#diff-2aeb90ba4258a1154f8558dc18c7ad46778ac0bb479f564fe96853d35303bca0
lib/buffer.jshttps://github.com/nodejs/node/pull/65605/files#diff-3c2cd5c512dd026a7765b6b2ae3f85785d3b7ea3795e11949892b7b73beee630
View file https://github.com/lazerg/node/blob/89195be1a4935234dfff25da4531004cfde8261f/lib/buffer.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/65605/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/65605/files#diff-3c2cd5c512dd026a7765b6b2ae3f85785d3b7ea3795e11949892b7b73beee630
https://github.com/nodejs/node/pull/65605/files#diff-3c2cd5c512dd026a7765b6b2ae3f85785d3b7ea3795e11949892b7b73beee630
https://github.com/nodejs/node/pull/65605/files#diff-3c2cd5c512dd026a7765b6b2ae3f85785d3b7ea3795e11949892b7b73beee630
https://github.com/nodejs/node/pull/65605/files#diff-3c2cd5c512dd026a7765b6b2ae3f85785d3b7ea3795e11949892b7b73beee630
https://github.com/nodejs/node/pull/65605/files#diff-3c2cd5c512dd026a7765b6b2ae3f85785d3b7ea3795e11949892b7b73beee630
lib/internal/buffer.jshttps://github.com/nodejs/node/pull/65605/files#diff-ec53d27b3c64c43cc2d4773dd88046ebb149e3d89e31d838df3252c8d5de89ad
View file https://github.com/lazerg/node/blob/89195be1a4935234dfff25da4531004cfde8261f/lib/internal/buffer.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/65605/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/65605/files#diff-ec53d27b3c64c43cc2d4773dd88046ebb149e3d89e31d838df3252c8d5de89ad
https://github.com/nodejs/node/pull/65605/files#diff-ec53d27b3c64c43cc2d4773dd88046ebb149e3d89e31d838df3252c8d5de89ad
https://github.com/nodejs/node/pull/65605/files#diff-ec53d27b3c64c43cc2d4773dd88046ebb149e3d89e31d838df3252c8d5de89ad
https://github.com/nodejs/node/pull/65605/files#diff-ec53d27b3c64c43cc2d4773dd88046ebb149e3d89e31d838df3252c8d5de89ad
src/node_buffer.cchttps://github.com/nodejs/node/pull/65605/files#diff-81f77f34c4f5b8cc35f1a506808b94e2a281f3341c0f1a38ef2b8a8ba730b22b
View file https://github.com/lazerg/node/blob/89195be1a4935234dfff25da4531004cfde8261f/src/node_buffer.cc
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/65605/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/65605/files#diff-81f77f34c4f5b8cc35f1a506808b94e2a281f3341c0f1a38ef2b8a8ba730b22b
https://github.com/nodejs/node/pull/65605/files#diff-81f77f34c4f5b8cc35f1a506808b94e2a281f3341c0f1a38ef2b8a8ba730b22b
test/parallel/test-buffer-alloc-alignment.jshttps://github.com/nodejs/node/pull/65605/files#diff-b0e3302ecff7b4b6c36466827e51101e02527feefd64e34da09b817567a1fba5
View file https://github.com/lazerg/node/blob/89195be1a4935234dfff25da4531004cfde8261f/test/parallel/test-buffer-alloc-alignment.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/65605/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/65605/files#diff-b0e3302ecff7b4b6c36466827e51101e02527feefd64e34da09b817567a1fba5
https://github.com/nodejs/node/pull/65605/files#diff-b0e3302ecff7b4b6c36466827e51101e02527feefd64e34da09b817567a1fba5
Please reload this pagehttps://github.com/nodejs/node/pull/65605/files
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

Viewport: width=device-width


URLs of crawlers that visited me.