Skip to content

Conversation

@fujita
Copy link
Member

@fujita fujita commented Dec 27, 2025

…ngth

parsePeerIndexTable used uint16 arithmetic for slice indices, which could wrap and cause data[6:5] panics. Compute view name boundaries using int indices and return errors safely.

Add a regression test covering large view name lengths.

…ngth

parsePeerIndexTable used uint16 arithmetic for slice indices, which
could wrap and cause data[6:5] panics. Compute view name boundaries
using int indices and return errors safely.

Add a regression test covering large view name lengths.

Signed-off-by: FUJITA Tomonori <[email protected]>
@fujita fujita merged commit b015c35 into osrg:master Dec 27, 2025
40 checks passed
@fujita fujita deleted the fix-mrt-parser branch December 27, 2025 03:28
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