mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
c3194d0d65
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Ralph Boehme <slow@samba.org>
24 lines
481 B
C
24 lines
481 B
C
/*
|
||
* "Trojan Source" CVE-2021-42574 test.
|
||
*
|
||
* Based on an example from https://lwn.net/Articles/874951/
|
||
*/
|
||
#include <stdio.h>
|
||
|
||
int main(int argc, char *argv[])
|
||
{
|
||
int isAdmin = 0;
|
||
|
||
#if 0
|
||
/* This is what is really there. */
|
||
|
||
/*«RLO» } «LRI»if (isAdmin)«PDI» «LRI» begin admins only */
|
||
puts("hello admin");
|
||
/* end admin only «RLO» { «LRI»*/
|
||
#else
|
||
/* } if (isAdmin) begin admins only */
|
||
puts("hello admin");
|
||
/* end admin only { */
|
||
#endif
|
||
}
|