github / github/codeql

LGTM.com - false positive

Đang mở
#7,477 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
false-positive
Ngôn ngữ chính
CodeQL
Star
10.1k
Fork
2.1k
Merge trung bình
2 ngày 15 giờ
Pull request đã merge (30 ngày)
141

Mô tả

**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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.