Guard against potential out-of-bounds lookups in base cell tables
Open
Nobody has claimed this yet.
bug
- Dominant language
- C
- Stars
- 6.5k
- Forks
- 627
- Avg merge
- 3d 21h
- Merged PRs (30d)
- 6
Description
The functions in baseCells.c should guard against invalid base cell numbers that could result in out-of-bounds reads on the lookup tables.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in baseCells.c and inspect each function that indexes a base cell lookup table, identifying how invalid base cell numbers can reach those lookups. Add validation so invalid inputs cannot cause out-of-bounds reads, then verify that all affected functions handle such inputs safely.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100