gost
gost copied to clipboard
potential data races
Hello developer, I used a static data race detector to check this project and found suspicious data race defects. I have done preliminary filtering and categorized the defects, choosing only one from each category. However, due to my unfamiliarity with the overall architecture of the project, there may still be false positives after filtering. Below are the potential data race issues I found(not all stack traces are listed) commit id:1c6237 +++++++++++++++++++++++++++++++++++++++ Potential race condition: Access1: clientAddr = addr ^ gost/socks.go:1357:3 -> gost/socks.go:1341:5
Access2: if clientAddr == nil { ^ gost/socks.go:1389:3 -> gost/socks.go:1369:7 +++++++++++++++++++++++++++++++++++++++ Potential race condition: Access1: clientAddr = addr ^ gost/ss.go:375:3 -> gost/ss.go:368:5 -> gost/ss.go:351:6
Access2: if clientAddr == nil { ^ gost/ss.go:409:3 -> gost/ss.go:402:5 -> gost/ss.go:387:8