C: strchr does not return null when looking for \0
Open
c
false-positive
stale
- Dominant language
- OCaml
- Stars
- 15.7k
- Forks
- 2.1k
- Avg merge
- 19h 36m
- Merged PRs (30d)
- 13
Description
The model for strchr should handle the special case when looking for \0 in the string. The string terminator is considered part of the string so in this case we will not return null.
Contributor guide
Assessment
This issue has not been assessed yet.