mirror of
https://github.com/github/codeql.git
synced 2025-12-23 20:26:32 +01:00
Apply suggestions from code review
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com>
This commit is contained in:
@@ -17,14 +17,14 @@ void test()
|
||||
S s;
|
||||
**s.x = user_input();
|
||||
*s.x = 0;
|
||||
sink(**s.x); // $ clean, as *s.x was overwritten and that contains the tainted **s.x
|
||||
sink(**s.x); // clean, as *s.x was overwritten and that contains the tainted **s.x
|
||||
}
|
||||
|
||||
{
|
||||
S s;
|
||||
**s.x = user_input();
|
||||
**s.x = 0;
|
||||
sink(**s.x); // $ clean, as **s.x was overwritten and tainted
|
||||
sink(**s.x); // clean, as **s.x was overwritten and tainted
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user