Skip to content

Fix off-by-one and macro impls for TypedArray - #7107

Merged
LordGoatius merged 2 commits into
mainfrom
cloudflare/jimmyostler/jsg-rs-fixes
Aug 26, 2026
Merged

Fix off-by-one and macro impls for TypedArray #7107
LordGoatius merged 2 commits into
mainfrom
cloudflare/jimmyostler/jsg-rs-fixes

Conversation

@LordGoatius

Copy link
Copy Markdown
Contributor

Access beyond bounds is just undefined, but for both of the changes correctness is best.

@LordGoatius
LordGoatius requested review from a team as code owners August 24, 2026 21:43
@LordGoatius
LordGoatius force-pushed the cloudflare/jimmyostler/jsg-rs-fixes branch from 3dd6648 to 633583e Compare August 24, 2026 21:43
Comment thread src/rust/jsg/v8.rs
@ask-bonk

ask-bonk Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

I'm Bonk, and I've done a quick review of your PR.

PR #7107 corrects TypedArray casting and callback argument bounds.

  1. High: src/rust/jsg/v8.rs:3150 breaks missing callback arguments in debug builds. Posted one inline suggestion.

Validation could not run: Bazel lacks libc++ headers (cstring not found).

Time for a pun! That assertion was out of bounds.

github run

@LordGoatius
LordGoatius force-pushed the cloudflare/jimmyostler/jsg-rs-fixes branch from 633583e to 884c457 Compare August 26, 2026 15:37
@LordGoatius
LordGoatius force-pushed the cloudflare/jimmyostler/jsg-rs-fixes branch from 884c457 to 2c5896f Compare August 26, 2026 16:35
@LordGoatius
LordGoatius enabled auto-merge (rebase) August 26, 2026 16:36
@LordGoatius
LordGoatius merged commit 6beed3e into main Aug 26, 2026
21 of 22 checks passed
@LordGoatius
LordGoatius deleted the cloudflare/jimmyostler/jsg-rs-fixes branch August 26, 2026 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants