mirror of
https://github.com/hohn/codeql-c-sqli.git
synced 2025-12-16 10:33:03 +01:00
17 lines
381 B
Plaintext
17 lines
381 B
Plaintext
|
|
|
|
import cpp
|
|
import semmle.code.cpp.security.Security
|
|
import semmle.code.cpp.security.FlowSources
|
|
|
|
class MyFS extends LocalFlowSource {
|
|
MyFS () {
|
|
exists(ReturnStmt rs |
|
|
rs.getEnclosingFunction().getName() = "get_user_info"
|
|
and this.asExpr() = rs.getExpr()
|
|
)
|
|
}
|
|
override string getSourceType() {
|
|
result = "foo"
|
|
}
|
|
} |