Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

BUG: set agc.reset.interval command parser does not accept full input range

Open Beginner friendly
#3,409 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

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

Research direction

Start in src/helpers/CommonCLI.cpp at the agc_reset_interval parser linked in the issue, then trace how the parsed interval is stored and checked. Reproduce the rollover with inputs around 252 and 256, and confirm the parser accepts values through 1000 seconds without wrapping before conversion.

Written by the indexing model from the issue text.

Description

agc_reset_interval is a uint8, and stored divided by four. As such, it should accept a value up to 255*4=1000 seconds.

The CLI parser stores interval = atoi(string) / 4 at https://github.com/meshcore-dev/MeshCore/blob/0679dbeffc504d562d2f09eb072fdc223f8ffc2a/src/helpers/CommonCLI.cpp#L475. It appears the compiler sees the interval is a unit8 and invokes a version of atoi() that already returns a unit8. The stored value becomes (input mod 256) / 4, making 252 the largest input accepted. At 256, it rolls over to 0, and so on.

Dominant language
C
Stars
3.9k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
25

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from meshcore-dev/MeshCore

All issues in meshcore-dev/MeshCore

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.