Closed udlose closed 1 year ago
By default I would be very unconcerned by these warnings - I strongly suspect they are all false positives, since there is no expectation of concurrent usage of overlapped multiple reads (that's simply not a scenario that Stream
itself supports). I can try to take a look, but: do you have any reason to think these anything more than automated tool noise?
@mgravell I don't. I just wanted to alert you if there were issues. I can open a bug report with the InferSharp repo if you feel that is the case.
The thing about these tools is that they can almost never be perfect or a substitute for inspection. False positives is the expected outcome, not a big as such. Sure you can try to minimize them, but that number can never be zero.
I am using
StackExchange.Redis
v2.6.86 (which usesPipelines.Sockets.Unofficial
v2.2.2 as a dependency) in my .NET 7 API. I am using the new Microsoft Static Analysis Tool (InferSharp) to analyze my code as well as dependent packages and I found a few warnings about Thread Safety Violation (and one Null Dereference Warning):