Title: sqlite: createTagStore() accepts invalid maxSize values (negative , NaN , float) · Issue #63791 · nodejs/node · GitHub
Open Graph Title: sqlite: createTagStore() accepts invalid maxSize values (negative , NaN , float) · Issue #63791 · nodejs/node
X Title: sqlite: createTagStore() accepts invalid maxSize values (negative , NaN , float) · Issue #63791 · nodejs/node
Description: Version v26.3.0 Platform Windows Subsystem sqlite What steps will reproduce the bug? const { DatabaseSync } = require('node:sqlite'); const db = new DatabaseSync(':memory:'); console.log(db.createTagStore(-1).capacity); // 18446744073709...
Open Graph Description: Version v26.3.0 Platform Windows Subsystem sqlite What steps will reproduce the bug? const { DatabaseSync } = require('node:sqlite'); const db = new DatabaseSync(':memory:'); console.log(db.createT...
X Description: Version v26.3.0 Platform Windows Subsystem sqlite What steps will reproduce the bug? const { DatabaseSync } = require('node:sqlite'); const db = new DatabaseSync(':memory:'); consol...
Opengraph URL: https://github.com/nodejs/node/issues/63791
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"sqlite: createTagStore() accepts invalid maxSize values (negative , NaN , float)","articleBody":"### Version\n\nv26.3.0\n\n### Platform\n\n```text\nWindows\n```\n\n### Subsystem\n\nsqlite\n\n### What steps will reproduce the bug?\n\n\n```js\nconst { DatabaseSync } = require('node:sqlite');\nconst db = new DatabaseSync(':memory:');\nconsole.log(db.createTagStore(-1).capacity); // 18446744073709552000 (overflow)\nconsole.log(db.createTagStore(NaN).capacity); // garbage value\nconsole.log(db.createTagStore(1.5).capacity); // accepts float silently\n```\n\n\n\n### How often does it reproduce? Is there a required condition?\n\neverytime!\n\n### What is the expected behavior? Why is that the expected behavior?\n\n`maxSize` is documented as `{integer}` and represents a cache size — negative values, NaN, and floats should throw `ERR_INVALID_ARG_TYPE` or `ERR_OUT_OF_RANGE`.\n\n### What do you see instead?\n\nInvalid values are silently accepted, causing integer overflow and garbage capacity values.\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/Anshikakalpana","@type":"Person","name":"Anshikakalpana"},"datePublished":"2026-06-08T10:55:21Z","url":"https://github.com/nodejs/node/issues/63791"}
| 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:ccc7acad-ff64-5434-6a97-837e5e5a8caf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E388:14AFD1:2D397:3D1F0:6AED3057 |
| html-safe-nonce | befe208c278363ded0215411ee1a5d14ec4ba49cd575e0bf6fac2139eb010e3c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzg4OjE0QUZEMToyRDM5NzozRDFGMDo2QUVEMzA1NyIsInZpc2l0b3JfaWQiOiIzMzk0NDIwMjA3NjA0MTMwMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3d412c2f95c3c3783b5a04e570fa85106ab66f78d61df9edf4d3eb5c51541436 |
| hovercard-subject-tag | issue:4612254310 |
| 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/63791/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0a197d4165688b266704f6d7c86a088c4b01837b1573a24c04f662e5113398b2/nodejs/node/issues/63791 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0a197d4165688b266704f6d7c86a088c4b01837b1573a24c04f662e5113398b2/nodejs/node/issues/63791 |
| og:image:alt | Version v26.3.0 Platform Windows Subsystem sqlite What steps will reproduce the bug? const { DatabaseSync } = require('node:sqlite'); const db = new DatabaseSync(':memory:'); console.log(db.createT... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Anshikakalpana |
| hostname | github.com |
| expected-hostname | github.com |
| None | e51d0b7b5ab34b1688c05b54c3ed17b8658b2fa9bca973a9c740683ccb12cf4a |
| 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 | 59ebb7b901cc154ecc179a44f266fcf69f343b30 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width