github / github/codeql

LGTM.com - false positive (decrementing uint8_t)

Offen
#4,422 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
C++ false-positive
Vorherrschende Sprache
CodeQL
Sterne
10.1k
Forks
2.1k
Ø Merge
2 T. 15 Std.
Gemergte PRs (30 T.)
141

Beschreibung

**Description of the false positive**

lgtm is claiming that a loop variable of type `uint8_t` will always stay equal to or greater than its initial value, despite the for-loop decrementing it. It's as if lgtm is not modelling unsigned variables or for loops correctly.

**URL to the alert on the project page on LGTM.com**

https://lgtm.com/projects/g/Chia-Network/chiapos/snapshot/837b9be23d5d21104a41b99fb9b5ad7fd2686e20/files/src/phase2.hpp?sort=name&dir=ASC&mode=heatmap#xb62e750067a5c62f:1

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.