ctdb: Save a few lines with talloc_zero()
[samba4-gss.git] / testdata / source-chars-bad.c
blob9b435722e1366da0727275f2abd609db77b5b1e8
1 /*
2 * "Trojan Source" CVE-2021-42574 test.
4 * Based on an example from https://lwn.net/Articles/874951/
5 */
6 #include <stdio.h>
8 int main(int argc, char *argv[])
10 int isAdmin = 0;
12 #if 0
13 /* This is what is really there. */
15 /*«RLO» } «LRI»if (isAdmin)«PDI» «LRI» begin admins only */
16 puts("hello admin");
17 /* end admin only «RLO» { «LRI»*/
18 #else
19 /*‮ } ⁦if (isAdmin)⁩ ⁦ begin admins only */
20 puts("hello admin");
21 /* end admin only ‮ { ⁦*/
22 #endif