Replies: 1 comment
-
I've added an answer in github/codeql#9728. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm fairly new to codeql so if I'm using codeql terms or statements incorrectly, apologies for that.
I have this simple Test class, where I'm trying to mimic a path problem.
with
Message1
as source andConsole.WriteLine(Message1)
as sink.Here I did simple taint tracking analysis on above Test class using above query, for const field
private const string Message1 = "Test Message 1";
assource
andConsole.WriteLine(Message1);
assink
i'm getting correct result, But fornon const
fieldprivate readonly string Message2 = "Test Message 2";
it doesn't seem to work.Did i miss something here? why does taint tracking works for const field or static field in static class but not for instance field?
I have asked this same question at two different places, below is the link for that.
stackoverflow question
github/codeql/issues/9569
Beta Was this translation helpful? Give feedback.
All reactions