runtime package. SetFinalizer(), GOMAXPROCS() — not typical security sinks but relevant for resource exhaustion rules.
.Stack().GOMAXPROCS().Stack()SourceStack(buf []byte, all bool) int
Writes goroutine stack trace. Information disclosure if written to user-visible output.
.GOMAXPROCS()SinkGOMAXPROCS(n int) int
Sets max OS threads. DoS risk when n is derived from user input without bounds check.
0| FQN | Field | |
|---|---|---|
| runtime | 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 GoRuntime