René's URL Explorer Experiment


Title: sqlite: binding a zero-length `Uint8Array` to a parameter can result in `NULL` · Issue #67188 · nodejs/node · GitHub

Open Graph Title: sqlite: binding a zero-length `Uint8Array` to a parameter can result in `NULL` · Issue #67188 · nodejs/node

X Title: sqlite: binding a zero-length `Uint8Array` to a parameter can result in `NULL` · Issue #67188 · nodejs/node

Description: Version v22.23.4 Platform Linux redacted 7.0.0-38-generic #38~24.04.4-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 14 16:37:11 UTC 2 x86_64 x86_64 x86_64 GNU/Linux Subsystem sqlite What steps will reproduce the bug? const { DatabaseSync } = requir...

Open Graph Description: Version v22.23.4 Platform Linux redacted 7.0.0-38-generic #38~24.04.4-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 14 16:37:11 UTC 2 x86_64 x86_64 x86_64 GNU/Linux Subsystem sqlite What steps will reproduce ...

X Description: Version v22.23.4 Platform Linux redacted 7.0.0-38-generic #38~24.04.4-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 14 16:37:11 UTC 2 x86_64 x86_64 x86_64 GNU/Linux Subsystem sqlite What steps will reproduce ...

Opengraph URL: https://github.com/nodejs/node/issues/67188

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"sqlite: binding a zero-length `Uint8Array` to a parameter can result in `NULL`","articleBody":"### Version\n\nv22.23.4\n\n### Platform\n\n```text\nLinux redacted 7.0.0-38-generic #38~24.04.4-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 14 16:37:11 UTC 2 x86_64 x86_64 x86_64 GNU/Linux\n```\n\n### Subsystem\n\nsqlite\n\n### What steps will reproduce the bug?\n\n```js\nconst { DatabaseSync } = require('node:sqlite');\nconst db = new DatabaseSync(':memory:');\n\n// Expected: prints { type: 'blob' }\nconsole.log(db.prepare('SELECT typeof(?) AS type').get(new Uint8Array()));\n\n// Unexpected: prints { type: 'null' }\nconsole.log(db.prepare('SELECT typeof(?) AS type').get(new Uint8Array(new ArrayBuffer(0))));\n```\n\n### How often does it reproduce? Is there a required condition?\n\nThe above code seems to reproduce the issue deterministically.\n\n### What is the expected behavior? Why is that the expected behavior?\n\nAll zero-length `Uint8Array`s bound to SQLite parameters should be converted to empty blobs.\n\n### What do you see instead?\n\n`new Uint8Array(new ArrayBuffer(0))` is converted to `NULL`.\n\n### Additional information\n\nThis seems to be fixed in v24 and v26.\n\nMy agent (GPT-6.1 Sol on Codex CLI) told me the following:\n\n> Reproduced on Node.js v22.23.4. `ArrayBufferViewContents` returns a non-null stack pointer for `new Uint8Array()`, but a null backing-store pointer for `new Uint8Array(new ArrayBuffer(0))`. Node passes that pointer to SQLite, which [interprets null pointers as SQL NULL](https://www.sqlite.org/c3ref/bind_blob.html), regardless of length.\n>\n> v26 includes [commit `bdf75a6`](https://github.com/nodejs/node/commit/bdf75a6c4e10) ([PR #62343](https://github.com/nodejs/node/pull/62343)), which makes the helper fall back to stack storage when the backing-store pointer is null. This fixes the SQLite behavior indirectly; the change originally addressed a crypto bug. Backporting this helper fix would resolve the v22 reproducer.","author":{"url":"https://github.com/duarte-pardal","@type":"Person","name":"duarte-pardal"},"datePublished":"2026-11-01T18:01:08Z","url":"https://github.com/nodejs/node/issues/67188"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:5011c2a8-003d-9732-84fd-09544098e5c5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id92EC:2E5652:301E274:3D538E6:6B01CAAE
html-safe-nonced8ab1204e42eb512e006574bc9719763dd5c4e862c54d04de95b2ccc33002cf8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MkVDOjJFNTY1MjozMDFFMjc0OjNENTM4RTY6NkIwMUNBQUUiLCJ2aXNpdG9yX2lkIjoiNDA3MzUwMTAyNDMyMzc1MDU3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8eee62a74d4b64dd3fe2b35356cfd47deb2a4648413abd01f4d09326572c4220
hovercard-subject-tagissue:6150215020
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/67188/issue_layout
twitter:imagehttps://opengraph.githubassets.com/799d3e9492c97f809dc443194cfbe8e9f3485824ddcedbdccc01837cd7c13f90/nodejs/node/issues/67188
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/799d3e9492c97f809dc443194cfbe8e9f3485824ddcedbdccc01837cd7c13f90/nodejs/node/issues/67188
og:image:altVersion v22.23.4 Platform Linux redacted 7.0.0-38-generic #38~24.04.4-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 14 16:37:11 UTC 2 x86_64 x86_64 x86_64 GNU/Linux Subsystem sqlite What steps will reproduce ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameduarte-pardal
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/67188#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F67188
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%2Fissues%2F67188
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/issues/67188
Reloadhttps://github.com/nodejs/node/issues/67188
Reloadhttps://github.com/nodejs/node/issues/67188
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues637 (637)https://github.com/nodejs/node/issues
Pull requests664 (664)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/insights
https://github.com/nodejs/node
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/67188
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/67188
#67657https://github.com/nodejs/node/pull/67657
sqlite: binding a zero-length Uint8Array to a parameter can result in NULLhttps://github.com/nodejs/node/issues/67188#top
#67657https://github.com/nodejs/node/pull/67657
sqliteIssues and PRs related to the SQLite subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22sqlite%22
v22.xIssues that can be reproduced on v22.x or PRs targeting the v22.x-staging branch.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22v22.x%22
https://github.com/duarte-pardal
duarte-pardalhttps://github.com/duarte-pardal
on Nov 1, 2026https://github.com/nodejs/node/issues/67188#issue-6150215020
interprets null pointers as SQL NULLhttps://www.sqlite.org/c3ref/bind_blob.html
commit bdf75a6https://github.com/nodejs/node/commit/bdf75a6c4e10
PR #62343https://github.com/nodejs/node/pull/62343
Renegade334https://github.com/Renegade334
v22.xIssues that can be reproduced on v22.x or PRs targeting the v22.x-staging branch.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22v22.x%22
sqliteIssues and PRs related to the SQLite subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22sqlite%22
on Nov 3, 2026https://github.com/nodejs/node/issues/67188#event-35012413940
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/67188
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/67188
sqliteIssues and PRs related to the SQLite subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22sqlite%22
v22.xIssues that can be reproduced on v22.x or PRs targeting the v22.x-staging branch.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22v22.x%22
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.