Title: Zstd silently ignores an ArrayBuffer passed as the dictionary option · Issue #64598 · nodejs/node · GitHub
Open Graph Title: Zstd silently ignores an ArrayBuffer passed as the dictionary option · Issue #64598 · nodejs/node
X Title: Zstd silently ignores an ArrayBuffer passed as the dictionary option · Issue #64598 · nodejs/node
Description: Version 26.5.0 Platform Darwin 25.5.0 arm64 Subsystem No response What steps will reproduce the bug? const zlib = require('node:zlib'); const dict = Buffer.from('the quick brown fox '.repeat(4)); const ab = dict.buffer.slice(dict.byteOff...
Open Graph Description: Version 26.5.0 Platform Darwin 25.5.0 arm64 Subsystem No response What steps will reproduce the bug? const zlib = require('node:zlib'); const dict = Buffer.from('the quick brown fox '.repeat(4)); c...
X Description: Version 26.5.0 Platform Darwin 25.5.0 arm64 Subsystem No response What steps will reproduce the bug? const zlib = require('node:zlib'); const dict = Buffer.from('the quick brown fox ...
Opengraph URL: https://github.com/nodejs/node/issues/64598
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Zstd silently ignores an ArrayBuffer passed as the dictionary option","articleBody":"### Version\n\n26.5.0\n\n### Platform\n\n```text\nDarwin 25.5.0 arm64\n```\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\n```js\n const zlib = require('node:zlib');\n const dict = Buffer.from('the quick brown fox '.repeat(4));\n const ab = dict.buffer.slice(dict.byteOffset, dict.byteOffset + dict.byteLength);\n\n console.log(zlib.zstdCompressSync(dict, { dictionary: dict }).length); // 16 (dict used)\n console.log(zlib.zstdCompressSync(dict, { dictionary: ab }).length); // 63 (dict ignored)\n console.log(zlib.zstdCompressSync(dict).length); // 63 (no dict)\n \n```\n\n\n### How often does it reproduce? Is there a required condition?\n\nAlways\n\n### What is the expected behavior? Why is that the expected behavior?\n\nAn ArrayBuffer dictionary is honored.\nBoth frames should be 16.\n\n\n### What do you see instead?\n\nThe ArrayBuffer is silently dropped and zstd compresses with no dictionary (63). \n\n### Additional information\n\nAccording to the [docs](https://nodejs.org/api/zlib.html#class-zstdoptions) this may not be a bug(the Zstd dictionary option is documented as {Buffer} only). \nBut deflate/inflate and Brotli accept an ArrayBuffer, so it would be nice to align Zstd with them.","author":{"url":"https://github.com/islandryu","@type":"Person","name":"islandryu"},"datePublished":"2026-07-19T14:06:34Z","url":"https://github.com/nodejs/node/issues/64598"}
| 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:af93e283-2926-70d5-8558-92694b840c0b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB1A:1CAA92:8309E0:AA69DA:6AED35CA |
| html-safe-nonce | bbee1274fb47070eb413f64dfc442a6613d76faf74584b083433c22a3e23caf5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjFBOjFDQUE5Mjo4MzA5RTA6QUE2OURBOjZBRUQzNUNBIiwidmlzaXRvcl9pZCI6IjY3NTE0MTcxNzkyMzc1OTQ1NzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 12662a2682d4a196a47e72bb0c6514a9560c7c42e19a35d079563b6ec93b3700 |
| hovercard-subject-tag | issue:4922978939 |
| 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/64598/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4bbeb9c94798d0624520bca0cc70ab62f843bc909cbb19dbcf7fed6c6116271d/nodejs/node/issues/64598 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4bbeb9c94798d0624520bca0cc70ab62f843bc909cbb19dbcf7fed6c6116271d/nodejs/node/issues/64598 |
| og:image:alt | Version 26.5.0 Platform Darwin 25.5.0 arm64 Subsystem No response What steps will reproduce the bug? const zlib = require('node:zlib'); const dict = Buffer.from('the quick brown fox '.repeat(4)); c... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | islandryu |
| hostname | github.com |
| expected-hostname | github.com |
| None | 26c92a9388ddfad3fa88d132b5d5f0b4747030233dcc4e5efb05f1cbae152184 |
| 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 | c629ad99c254d306375fc8354d04321c2c362236 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width