google / google/wwwbasic

Implement error on out of bounds array access.

Open
#33 0 comments 0 reactions 1 assignee Claimed by @flagxor View on GitHub
Dominant language
JavaScript
Stars
1.2k
Forks
61
PR merge metrics
No merged PRs in 30d

Description

In transitioning to a single buffer for arrays, it became possible to access out of bounds (and into adjacent memory).
For correct behavior we need to do a bounds check and error.
This might adversely effect some programs that need performance, like the Nike Hercules simulator, so should be done carefully (maybe add an option to turn off the checks).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.