Apply suggestions from code review

Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com>
This commit is contained in:
Jeroen Ketema
2023-06-26 12:57:43 +02:00
committed by GitHub
parent c7e5dc2e9e
commit 527b537fee

View File

@@ -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
}
{