bufio.Reader wraps an io.Reader with buffering. ReadString() and ReadLine() are sources when the underlying reader is an HTTP request body or stdin.
.ReadString().ReadLine().ReadBytes().ReadString()SourceReadString(delim byte) (string, error)
Reads until delimiter. Source when wrapping user-controlled input.
return.ReadLine()SourceReadLine() (line []byte, isPrefix bool, err error)
Reads one line. Source when wrapping HTTP body or stdin.
return.ReadBytes()SourceReadBytes(delim byte) ([]byte, error)
Reads until delimiter. Source of tainted bytes.
return| FQN | Field | |
|---|---|---|
| bufio.Reader | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
// standard library — no go.mod entry required
from codepathfinder.go_rule import GoBufioReader