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

`DIR-5-1`: false negatives in strtok

Open
#1,078 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp
Domain
tooling

Research direction

Search the definitions or queries for the affected rules DIR-5-1 and RULE-4-1-3, then inspect how the function name strtok is identified. Correct the typo so strtok is marked non-reentrant, and verify that the supplied C++ example is reported by the relevant rule.

Written by the indexing model from the issue text.

Description

Difficulty-Low false positive/false negative false-negative Impact-Low
Affected rules
  • DIR-5-1
  • RULE-4-1-3
Description

Just a typo causing us to not mark the function strtok as non-reentrant

Example
```cpp void f() { strtok(...); // non-reentrant } ```
Dominant language
CodeQL
Stars
227
Forks
82
Avg merge
6d 7h
Merged PRs (30d)
9

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.

More from github/codeql-coding-standards

All issues in github/codeql-coding-standards

Similar issues

More DevTools issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.