LGTM.com - false positive
Aberta
false-positive
- Linguagem predominante
- CodeQL
- Estrelas
- 10.1k
- Forks
- 2.1k
- Merge médio
- 2d 15h
- PRs com merge (30d)
- 141
Descrição
**Description of the false positive**
LGTM detects an overflow of the static array but the tag is sized 5 (TAG_SIZE+1) with a MACRO definition of TAG_SIZE set at 4.
It should not detect an overflow. Maybe it can alert on a misleading code since " tag[TAG_SIZE] = '\0' " would have been semantically better.
**URL to the alert on the project page on LGTM.com**
https://lgtm.com/projects/g/CGNS/CGNS/snapshot/a8ce0c1b1b48ddeb108dbed26ea49bc3b19cb217/files/src/adf/ADF_internals.c?sort=name&dir=ASC&mode=heatmap#x2675ef43068d1816:1
Guia de contribuição
Avaliação
Esta issue ainda não foi avaliada.