github / github/codeql

Go: False positive for go/index-out-of-bounds

Open
#9,300 3 comments 0 reactions 0 assignees View on GitHub
acknowledged false-positive Go
Dominant language
CodeQL
Stars
10.1k
Forks
2.1k
Avg merge
2d 15h
Merged PRs (30d)
141

Description

Observed on LGTM:

https://lgtm.com/projects/g/caddyserver/caddy/snapshot/d8e8a8ca215a4ed7b519656ecbe3c081cd1a840a/files/modules/caddyhttp/rewrite/caddyfile.go?sort=name&dir=ASC&mode=heatmap#x5ef0d8f84bad448a:1

The read operation that is referred to by the alert is guarded by a later length check.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.