1 extern char *mtainted (char *s);
3 /*@untainted@*/ char *f (/*@tainted@*/ char *s, /*@untainted@*/ char *us)
5 char *x = f (us, s); /* Error: tainted as untainted */
9 void test (/*@tainted@*/ char *s)
11 char *t = malloc (sizeof (char) * strlen (s));
12 (void) system (s); /* error */
16 /* t is tainted too */
17 (void) system (t); /* error */
19 t = mtainted (s); /* default return is tainted! */
20 (void) system (t); /* error */