Skip to content

fix: preserve valid error descriptions - #40

Open
mcollina wants to merge 1 commit into
ShogunPanda:mainfrom
mcollina:security/sec-02-error-utf8
Open

mcollina wants to merge 1 commit into
ShogunPanda:mainfrom
mcollina:security/sec-02-error-utf8

Conversation

@mcollina

@mcollina mcollina commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Keep stored error descriptions on UTF-8 character boundaries, validate native and WebAssembly failure descriptions, handle null and empty descriptions without constructing invalid slices, and avoid panics on embedded NUL bytes.

The JavaScript wrapper now allocates the encoded UTF-8 byte length and always deallocates through finally. This fixes SEC-02 from #38 with Rust and WebAssembly regression coverage.

This branch has not been deployed

No deployments
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.

1 participant