Title: buffer: isUtf8 and isAscii accept detached TypedArray views · Issue #64503 · nodejs/node · GitHub
Open Graph Title: buffer: isUtf8 and isAscii accept detached TypedArray views · Issue #64503 · nodejs/node
X Title: buffer: isUtf8 and isAscii accept detached TypedArray views · Issue #64503 · nodejs/node
Description: Version latest main branch Platform 7.1.2-arch3-1 Subsystem buffer What steps will reproduce the bug? const { isUtf8, isAscii } = require('node:buffer'); const view = new Uint8Array([0xff]); structuredClone(view.buffer, { transfer: [view...
Open Graph Description: Version latest main branch Platform 7.1.2-arch3-1 Subsystem buffer What steps will reproduce the bug? const { isUtf8, isAscii } = require('node:buffer'); const view = new Uint8Array([0xff]); struct...
X Description: Version latest main branch Platform 7.1.2-arch3-1 Subsystem buffer What steps will reproduce the bug? const { isUtf8, isAscii } = require('node:buffer'); const view = new Uint8Array([0xff])...
Opengraph URL: https://github.com/nodejs/node/issues/64503
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"buffer: isUtf8 and isAscii accept detached TypedArray views","articleBody":"### Version\n\nlatest main branch\n\n### Platform\n\n```text\n7.1.2-arch3-1\n```\n\n### Subsystem\n\nbuffer\n\n### What steps will reproduce the bug?\n\n ```js\n const { isUtf8, isAscii } = require('node:buffer');\n\n const view = new Uint8Array([0xff]);\n structuredClone(view.buffer, { transfer: [view.buffer] });\n\n console.log(isUtf8(view));\n console.log(isAscii(view));\n ```\n\n### How often does it reproduce? Is there a required condition?\n\nArrayBufferViewContents reads the view's zero byte length but does not record the detached state of its backing ArrayBuffer.\n\n### What is the expected behavior? Why is that the expected behavior?\n\nBoth functions should throw ERR_INVALID_STATE, consistent with passing a detached ArrayBuffer directly.\n\n### What do you see instead?\n\nBoth functions return true.\n\n### Additional information\n\n\n","author":{"url":"https://github.com/Archkon","@type":"Person","name":"Archkon"},"datePublished":"2026-07-14T17:14:50Z","url":"https://github.com/nodejs/node/issues/64503"}
| react-profiling | 0 |
| react-import-map | react,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 | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:012a16e3-c170-7253-c213-53af2918c327 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CCD6:216337:531546:70E760:6AED1F46 |
| html-safe-nonce | 11f02d483c58d85593ef4730e1b18c27acc6fb8b28d879769754b1b7e1e15405 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0Q2OjIxNjMzNzo1MzE1NDY6NzBFNzYwOjZBRUQxRjQ2IiwidmlzaXRvcl9pZCI6IjMzMTg1MTI5MjEyMDQzMDE2MzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 43adafd39900f3f067975b29cb7ff4249ca0943f5293f8724362d371c8dd7e63 |
| hovercard-subject-tag | issue:4885405135 |
| 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/64503/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ccb02b43895af8425557ec1dee1307e0afbaf8194160d956c383843c7b6846e7/nodejs/node/issues/64503 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ccb02b43895af8425557ec1dee1307e0afbaf8194160d956c383843c7b6846e7/nodejs/node/issues/64503 |
| og:image:alt | Version latest main branch Platform 7.1.2-arch3-1 Subsystem buffer What steps will reproduce the bug? const { isUtf8, isAscii } = require('node:buffer'); const view = new Uint8Array([0xff]); struct... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Archkon |
| hostname | github.com |
| expected-hostname | github.com |
| None | e3e0f7f63e50c6fe879198a93a0a023a648ecc0a5e9bc3b5e033ac57172237e6 |
| 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 | 707a24b346ac8a82878b9c084efaa38a997660cb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width