Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False positive for cs/dereferenced-value-is-always-null in CSharp #16171

Open
wwwjwww opened this issue Apr 10, 2024 · 2 comments
Open

False positive for cs/dereferenced-value-is-always-null in CSharp #16171

wwwjwww opened this issue Apr 10, 2024 · 2 comments
Assignees

Comments

@wwwjwww
Copy link

wwwjwww commented Apr 10, 2024

Description of the false positive

Hi, I wonder if this is a false positive in cs/dereferenced-value-is-always-null. From my understanding, the program would never run L975.

Code samples or links to source code
image

@wwwjwww wwwjwww changed the title False positive for cs/dereferenced-value-is-always-null in Sharp False positive for cs/dereferenced-value-is-always-null in CSharp Apr 10, 2024
@mbg mbg added the C# label Apr 10, 2024
@mbg mbg self-assigned this Apr 10, 2024
@mbg
Copy link
Member

mbg commented Apr 10, 2024

Hi again @wwwjwww 👋

Thanks for reporting this one as well. Based on the code in the screenshot, this does look like a false positive to me. We will track this internally, but addressing false positives is not currently a product priority, so I can't say when this may get looked into -- especially since this is a correctness query, not a security one.

@wwwjwww
Copy link
Author

wwwjwww commented Apr 16, 2024

Thanks!

@wwwjwww wwwjwww closed this as completed Apr 16, 2024
@wwwjwww wwwjwww reopened this Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants