Skip to content

node-api: reject immutable ArrayBuffers when detaching - #67764

Closed
samarthyadavv wants to merge 1 commit into
nodejs:mainfrom
samarthyadavv:fix/napi-immutable-arraybuffer-detach
Closed

samarthyadavv wants to merge 1 commit into
nodejs:mainfrom
samarthyadavv:fix/napi-immutable-arraybuffer-detach

Conversation

@samarthyadavv

@samarthyadavv samarthyadavv commented Nov 24, 2026 •

Copy link
Copy Markdown

Update napi_detach_arraybuffer() to reject immutable ArrayBuffer instances. This prevents native addons from detaching an immutable buffer and preserves access to its contents.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/node-api

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. node-api Issues and PRs related to Node-API. labels Nov 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Welcome to Node.js, and thank you for your first contribution!

Before review, please take a moment to read:

Please make sure every commit is signed off. For a first pull request, GitHub Actions require collaborator approval and Jenkins CI must be started by a collaborator or triager, so an initial wait is normal.

@legendecas

Copy link
Copy Markdown
Member

Duplicate of #67388.

@legendecas legendecas added the duplicate Issues and PRs that are duplicates of other issues or PRs. label Nov 24, 2026
@github-project-automation github-project-automation Bot moved this from Need Triage to Done in Node-API Team Project Nov 24, 2026
@samarthyadavv

Copy link
Copy Markdown
Author

okay i close it @legendecas

@samarthyadavv
samarthyadavv deleted the fix/napi-immutable-arraybuffer-detach branch November 24, 2026 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. duplicate Issues and PRs that are duplicates of other issues or PRs. needs-ci PRs that need a full CI run. node-api Issues and PRs related to Node-API.

Projects

Development

Successfully merging this pull request may close these issues.

3 participants