Skip to content

docs: document trust requirements for JS_READ_OBJ_BYTECODE and _SAB - #1484

Merged
saghul merged 1 commit into
quickjs-ng:masterfrom
nordstjernen-web:claude/sec-docs-bytecode-sab-trust
May 17, 2026
Merged

saghul merged 1 commit into
quickjs-ng:masterfrom
nordstjernen-web:claude/sec-docs-bytecode-sab-trust

Conversation

@andreasrosdal

Copy link
Copy Markdown
Contributor

The bytecode format is not hardened against a hostile producer, and the SAB transport in JS_Write/ReadObject embeds a raw host pointer that the reader will dereference verbatim. Both expectations are project lore; embedders only see the flag definitions in quickjs.h. Document them at the API boundary.

Docs-only change, no test.

The bytecode format is not hardened against a hostile producer, and the
SAB transport in JS_Write/ReadObject embeds a raw host pointer that the
reader will dereference verbatim. Both expectations are project lore;
embedders only see the flag definitions in quickjs.h. Document them at
the API boundary.

Docs-only change, no test.
@saghul
saghul merged commit e0a376c into quickjs-ng:master May 17, 2026
124 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants