File tree Expand file tree Collapse file tree
cpp/ql/test/library-tests/dataflow/security-taint Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5252| test.cpp:75:20:75:25 | call to getenv | test.cpp:75:15:75:18 | call to atoi | |
5353| test.cpp:75:20:75:25 | call to getenv | test.cpp:75:20:75:25 | call to getenv | |
5454| test.cpp:75:20:75:25 | call to getenv | test.cpp:75:20:75:45 | (const char *)... | |
55+ | test.cpp:87:12:87:15 | call to gets | test.cpp:85:8:85:14 | pointer | |
56+ | test.cpp:87:12:87:15 | call to gets | test.cpp:87:2:87:8 | pointer | |
57+ | test.cpp:87:12:87:15 | call to gets | test.cpp:87:12:87:15 | call to gets | |
58+ | test.cpp:87:17:87:22 | buffer | test.cpp:80:18:80:18 | s | |
59+ | test.cpp:87:17:87:22 | buffer | test.cpp:84:7:84:12 | buffer | |
60+ | test.cpp:87:17:87:22 | buffer | test.cpp:87:17:87:22 | buffer | |
Original file line number Diff line number Diff line change 88| test.cpp:68:28:68:33 | call to getenv | test.cpp:69:10:69:13 | copy | AST only |
99| test.cpp:68:28:68:33 | call to getenv | test.cpp:70:12:70:15 | copy | AST only |
1010| test.cpp:68:28:68:33 | call to getenv | test.cpp:71:12:71:15 | copy | AST only |
11+ | test.cpp:87:12:87:15 | call to gets | test.cpp:87:2:87:8 | pointer | AST only |
12+ | test.cpp:87:17:87:22 | buffer | test.cpp:84:7:84:12 | buffer | AST only |
13+ | test.cpp:87:17:87:22 | buffer | test.cpp:87:17:87:22 | array to pointer conversion | IR only |
Original file line number Diff line number Diff line change 4040| test.cpp:75:20:75:25 | call to getenv | test.cpp:75:15:75:18 | call to atoi | |
4141| test.cpp:75:20:75:25 | call to getenv | test.cpp:75:20:75:25 | call to getenv | |
4242| test.cpp:75:20:75:25 | call to getenv | test.cpp:75:20:75:45 | (const char *)... | |
43+ | test.cpp:87:12:87:15 | call to gets | test.cpp:85:8:85:14 | pointer | |
44+ | test.cpp:87:12:87:15 | call to gets | test.cpp:87:12:87:15 | call to gets | |
45+ | test.cpp:87:17:87:22 | buffer | test.cpp:80:18:80:18 | s | |
46+ | test.cpp:87:17:87:22 | buffer | test.cpp:87:17:87:22 | array to pointer conversion | |
47+ | test.cpp:87:17:87:22 | buffer | test.cpp:87:17:87:22 | buffer | |
Original file line number Diff line number Diff line change @@ -76,3 +76,13 @@ void guard() {
7676 if (len > 1000 ) return ;
7777 char **node = (char **) malloc (len * sizeof (char *));
7878}
79+
80+ char *gets (char *s);
81+
82+ void test_gets ()
83+ {
84+ char buffer[1024 ];
85+ char *pointer;
86+
87+ pointer = gets (buffer);
88+ }
You can’t perform that action at this time.
0 commit comments