Lines Matching full:tainted
18 addr += n;// expected-warning + {{tainted}}
19 *addr = n; // expected-warning + {{tainted}}
21 double tdiv = n / 30; // expected-warning+ {{tainted}}
22 char *loc_cast = (char *) n; // expected-warning +{{tainted}}
23 char tinc = tdiv++; // expected-warning + {{tainted}}
24 int tincdec = (char)tinc--; // expected-warning+{{tainted}}
26 // Tainted ptr arithmetic/array element address.
27 int tprtarithmetic1 = *(addr+1); // expected-warning + {{tainted}}
32 int ptrDeref = *ptr; // expected-warning + {{tainted}}
33 int _ptrDeref = ptrDeref + 13; // expected-warning + {{tainted}}
38 int addrDeref = *addr; // expected-warning + {{tainted}}
39 int _addrDeref = addrDeref; // expected-warning + {{tainted}}
41 // Tainted struct address, casts.
44 void *tXYStructPtr = xyPtr; // expected-warning + {{tainted}}
45 struct XYStruct *xyPtrCopy = tXYStructPtr; // expected-warning + {{tainted}}
46 int ptrtx = xyPtr->x;// expected-warning + {{tainted}}
47 int ptrty = xyPtr->y;// expected-warning + {{tainted}}
53 int tx = xy.x; // expected-warning + {{tainted}}
54 int ty = xy.y; // FIXME: This should be tainted as well.
58 int ttx = xy.x; // expected-warning + {{tainted}}
59 int tty = xy.y; // expected-warning + {{tainted}}
67 int y = (in << (x << in)) * 5;// expected-warning + {{tainted}}
69 int z = y & inn; // expected-warning + {{tainted}}
70 if (y == 5) // expected-warning + {{tainted}}
71 m = z | z;// expected-warning + {{tainted}}
74 int mm = m; // expected-warning + {{tainted}}
80 home = getenv("HOME"); // expected-warning + {{tainted}}
81 if (home != 0) { // expected-warning + {{tainted}}
82 char d = home[0]; // expected-warning + {{tainted}}
91 // Check if stdin is treated as tainted.
93 // Note, here, s is not tainted, but the data s points to is tainted.
95 char tss = s[0]; // expected-warning + {{tainted}}
96 int tt = t; // expected-warning + {{tainted}}
97 if((fp=fopen("test", "w")) == 0) // expected-warning + {{tainted}}
99 fprintf(fp, "%s %d", s, t); // expected-warning + {{tainted}}
100 fclose(fp); // expected-warning + {{tainted}}
103 if((fp=fopen("test","r")) == 0) // expected-warning + {{tainted}}
105 fscanf(fp, "%s%d", s, &t); // expected-warning + {{tainted}}
106 fprintf(stdout, "%s %d", s, t); // expected-warning + {{tainted}}
114 int j = i; // expected-warning + {{tainted}}
122 int jj = ii;// expected-warning + {{tainted}}
125 int jj2 = ii;// expected-warning + {{tainted}}
139 int jjj = iii;// expected-warning + {{tainted}}
148 int j = i; // expected-warning + {{tainted}}
153 int i = getw(stdin); // expected-warning + {{tainted}}
166 printf("%s", line); // expected-warning + {{tainted}}
168 free(line); // expected-warning + {{tainted}}
181 int d = atoi(s); // expected-warning + {{tainted}}
182 int td = d; // expected-warning + {{tainted}}
184 long l = atol(s); // expected-warning + {{tainted}}
185 int tl = l; // expected-warning + {{tainted}}
187 long long ll = atoll(s); // expected-warning + {{tainted}}
188 int tll = ll; // expected-warning + {{tainted}}