sdk/golang/Standard Library/GoEncodingBinary
Standard Library

GoEncodingBinary

encoding/binary package. Read() deserializes binary data from a reader — source of taint when the reader is network or user input.

1 source
Taint flow1 source 0 sinks
Sources — untrusted input
.Read()

Sources

.Read()Source
#
Signature
Read(r io.Reader, order ByteOrder, data any) error

Reads binary data into data. data becomes tainted when r is user-controlled.

tracks:2

Fully-Qualified Names

FQNField
encoding/binaryfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

go.mod
// standard library — no go.mod entry required
rule.py
from codepathfinder.go_rule import GoEncodingBinary