Merge pull request #17717 from owen-mc/go/update-incorrect-integer-conversion-qhelp

Go: Update `go/incorrect-integer-conversion` qhelp to explain possible source of FPs
This commit is contained in:
Owen Mansel-Chan 2024-10-21 21:53:32 +01:00 коммит произвёл GitHub
Родитель 9ef1a9c3f9 500992c499
Коммит 23a1ea7191
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -27,6 +27,11 @@ the bit size you specified when parsing the number.
If this is not possible, then add upper (and lower) bound checks specific to each type and
bit size (you can find the minimum and maximum value for each type in the <code>math</code> package).
</p>
<p>
Note that CodeQL is only able to identify bounds checks that compare against a constant value. When a variable
is used in the comparison, CodeQL is unable to determine the value of the variable at runtime and will not
recognize the bounds check.
</p>
</recommendation>
<example>