Skip to content

Commit e6b23a9

Browse files
committed
from...where...select
1 parent 7b1daa9 commit e6b23a9

1 file changed

Lines changed: 19 additions & 4 deletions

File tree

session.ql

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
1-
/**
2-
* @kind path-problem
3-
*/
41

52
import cpp
63

7-
select 1
4+
// 1. invalid input -- source
5+
// count = read(STDIN_FILENO, buf, BUFSIZE - 1);
6+
//
7+
// 2. gets to a sql statement -- flow
8+
// flow config
9+
//
10+
// 3. drops table -- sink
11+
// rc = sqlite3_exec(db, query, NULL, 0, &zErrMsg);
12+
13+
// All predicates and classes are using one of:
14+
// AST Abstract syntax tree
15+
// CFG Control flow graph
16+
// DFG Data flow graph
17+
// Type hierarchy
18+
19+
from FunctionCall read, VariableAccess buf
20+
where read.getTarget().getName() = "read" and
21+
read.getArgument(1) = buf
22+
select buf

0 commit comments

Comments
 (0)