Title: string_decoder and V8 decoder misaligned in edge case · Issue #22626 · nodejs/node · GitHub
Open Graph Title: string_decoder and V8 decoder misaligned in edge case · Issue #22626 · nodejs/node
X Title: string_decoder and V8 decoder misaligned in edge case · Issue #22626 · nodejs/node
Description: Version: 8 and above (but fixing might be semver-major) Subsystem: string_decoder 'use strict'; const { StringDecoder } = require('string_decoder'); const bufs = [ Buffer.from('f6', 'hex'), Buffer.from('9b', 'hex'), Buffer.from('d1', 'he...
Open Graph Description: Version: 8 and above (but fixing might be semver-major) Subsystem: string_decoder 'use strict'; const { StringDecoder } = require('string_decoder'); const bufs = [ Buffer.from('f6', 'hex'), Buffer....
X Description: Version: 8 and above (but fixing might be semver-major) Subsystem: string_decoder 'use strict'; const { StringDecoder } = require('string_decoder'); const bufs = [ Buffer.from('...
Opengraph URL: https://github.com/nodejs/node/issues/22626
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"string_decoder and V8 decoder misaligned in edge case","articleBody":"* **Version**: 8 and above (but fixing might be semver-major)\r\n* **Subsystem**: string_decoder\r\n\r\n```js\r\n'use strict';\r\nconst { StringDecoder } = require('string_decoder');\r\n\r\nconst bufs = [\r\n Buffer.from('f6', 'hex'),\r\n Buffer.from('9b', 'hex'),\r\n Buffer.from('d1', 'hex')\r\n];\r\n\r\nconst sd = new StringDecoder('utf8');\r\nlet str = '';\r\nfor (const buf of bufs)\r\n str += sd.write(buf);\r\nstr += sd.end();\r\n\r\nconsole.log(`str = ${str}`) // 2 replacement chars\r\nconsole.log(`orig = ${Buffer.concat(bufs).toString()}`) // 3 replacement chars\r\n```\r\n\r\nHaven’t really looked into this yet, so anybody who’d like to can feel free to do so.","author":{"url":"https://github.com/addaleax","@type":"Person","name":"addaleax"},"datePublished":"2018-08-31T16:42:42Z","url":"https://github.com/nodejs/node/issues/22626"}
| react-profiling | 0 |
| react-import-map | react,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/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ecd3c26a-6c7f-88ed-3134-073971d722f7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CCDE:60A6D:D137F:1142B6:6B0182A2 |
| html-safe-nonce | 23684459d27ca5fd29d9fdf3380fdc99f17f40be626194173cb8bdfb8ff1114a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0RFOjYwQTZEOkQxMzdGOjExNDJCNjo2QjAxODJBMiIsInZpc2l0b3JfaWQiOiIxNzA5NzE4MzE3ODc2NDc4NjI2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7ae6aa1c80ecfd355179fae5091129bb0e60718aec7bc32df4bace5bc262f0b6 |
| hovercard-subject-tag | issue:356051205 |
| 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/22626/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3ce6cd5f30a869fba1edfafbd1ba786cbf3e993d2742180fe6f65ed064568075/nodejs/node/issues/22626 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3ce6cd5f30a869fba1edfafbd1ba786cbf3e993d2742180fe6f65ed064568075/nodejs/node/issues/22626 |
| og:image:alt | Version: 8 and above (but fixing might be semver-major) Subsystem: string_decoder 'use strict'; const { StringDecoder } = require('string_decoder'); const bufs = [ Buffer.from('f6', 'hex'), Buffer.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | addaleax |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width