uber / uber/h3

Guard against potential out-of-bounds lookups in base cell tables

Open
#392 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.