diff options
Diffstat (limited to 'test/Analysis/taint-tester.c')
-rw-r--r-- | test/Analysis/taint-tester.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Analysis/taint-tester.c b/test/Analysis/taint-tester.c index 8a82cd397a..da1ff024d1 100644 --- a/test/Analysis/taint-tester.c +++ b/test/Analysis/taint-tester.c @@ -49,8 +49,8 @@ void taintTracking(int x) { // Taint on fields of a struct. struct XYStruct xy = {2, 3, 11}; - scanf("%f", &xy.y); - scanf("%f", &xy.x); + scanf("%d", &xy.y); + scanf("%d", &xy.x); int tx = xy.x; // expected-warning {{tainted}} int ty = xy.y; // FIXME: This should be tainted as well. char ntz = xy.z;// no warning |