LGTM.com - false positive
未關閉
false-positive
- 主要語言
- CodeQL
- 星號
- 10.1k
- 分支
- 2.1k
- 平均合併
- 2 天 15 小時
- 30 天內合併 PR
- 141
描述
**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
貢獻指南
評估
這個 Issue 還沒有評估資料。