sync.Map provides a concurrent map. Load() and Store() are relevant for data flow tracking in concurrent handlers where shared state is modified.
.Load().Load()SourceLoad(key any) (value any, ok bool)
Loads value from map. Source of taint when map stores user-controlled data.
return| FQN | Field | |
|---|---|---|
| sync.Map | 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 GoSyncMap