vmware / vmware/splinterdb

Overruning write by sccanf

Open
#576 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
732
Forks
67
PR merge metrics
No merged PRs in 30d

Description

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 tests/functional/ycsb_test.c at the sscanf calls around lines 584 and 598-602, then inspect the result[i].key definition around lines 244-246 and the YCSB_KEY_SIZE definition near line 17. Confirm the buffer-size mismatch and update the format or size so the calls cannot overrun the destination; run the relevant functional YCSB tests to verify they still pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
testing
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.