Skip to content

docs: document trust requirements for JS_READ_OBJ_BYTECODE and _SAB#1484

Open
andreasrosdal wants to merge 1 commit into
quickjs-ng:masterfrom
nordstjernen-web:claude/sec-docs-bytecode-sab-trust
Open

docs: document trust requirements for JS_READ_OBJ_BYTECODE and _SAB#1484
andreasrosdal wants to merge 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.
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.

2 participants