inspect: harden model component window bounds

main

Commit

dipree2mo ago

modelComponentsMatch already calls componentsEqualAt only for offsets whose matched span is in bounds, but add a defensive bounds check inside componentsEqualAt so direct or future callers cannot overrun the long slice. Add a focused regression test for negative and overrun offsets.

Entire-Checkpoint: d9f07524da29

Checkpoints

Checkout the hand off doc that I just added.

PiOpus 4.8
View session
Checkpoint 1