-
Notifications
You must be signed in to change notification settings - Fork 38
RoslynSecurityGuard.Analyzers.Taint.TaintAnalyzer #88
Comments
I'm getting something similar (sample pasted at the end).
Solution compiles and runs ok, but with RoslynSecurityGuard enabled I get 6 warnings on the error list regarding "Object reference not set to an instance of an object" : 2 while visiting method 'IsAuthorized', 2 while visiting method 'OnAuthorization' and 2 while visiting 'Patch' Any suggestions? Here is a sample output for the first warning: Warning AD0001 Analyzer 'RoslynSecurityGuard.Analyzers.Taint.TaintAnalyzer' threw an exception of type 'System.Exception' with message 'Unhandle exception while visiting method IsAuthorized : Object reference not set to an instance of an object.'. RestApi 1 Active Analyzer 'RoslynSecurityGuard.Analyzers.Taint.TaintAnalyzer' threw the following exception: |
I got the same problem in multiple projects and solutions:
Does Anyone know the problem? |
So I dont want to patronise you guys, as you're clearly developers, but why arnt you adding reproduction steps to your issues? How do you expect anyone to solve your problem without showing them how to get the same issue? NullReferenceExceptions are normally trivial to fix but without knowing which line causing the problem, or having a failing test case to investigate, it is usually just guesswork. If you have the time to raise issues surely you can spend the extra five minutes to download the source, fire up a debugger (on the vsix project), open your solution, document the actual source of the problem and maybe even work out the solution (and submit a p/r with a fix). |
I don't mind debugging if you explain me how to run and debug the project together with the code that it's supposed to analyze. |
Using the Roslyn Security Guard Nuget Packages (2.3.0), I receive the same error. However, after building the code within the repo and adding the locally built analyzer, the error went away. Error appears to be directly linked to the Nuget Package. |
Steps to reproduce: (1) Install Roslyn Security Guard from the Marketplace link: (2) Make sure extension is installed and enabled inside Visual Studio 2017 (3) Build the following open source application: (4) Get errors like the following:
FYI, actual method looks like this:
Not sure what the issue is here. I am not using a NuGet package for the analyzer. Thanks, PS) Here is the exception context:
|
Anyone looking at this issue to fix? |
Keep-Alive-Ping |
Hi, any news ? 🔢 |
Please read the first line of readme.md on the main page. |
@JarLob thanks, make sense than, lol |
Update: The tool is still broken in 2019. |
The text was updated successfully, but these errors were encountered: