mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
C++/CleartextSqliteDatabase
This commit is contained in:
@@ -127,13 +127,13 @@ module FromSensitiveConfig implements DataFlow::ConfigSig {
|
|||||||
predicate observeDiffInformedIncrementalMode() { any() }
|
predicate observeDiffInformedIncrementalMode() { any() }
|
||||||
|
|
||||||
Location getASelectedSourceLocation(DataFlow::Node source) {
|
Location getASelectedSourceLocation(DataFlow::Node source) {
|
||||||
exists(SensitiveExpr sensitive | result = sensitive.getLocation() |
|
exists(SensitiveExpr sensitive | result = [sensitive.getLocation(), source.getLocation()] |
|
||||||
isSourceImpl(source, sensitive)
|
isSourceImpl(source, sensitive)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
Location getASelectedSinkLocation(DataFlow::Node sink) {
|
Location getASelectedSinkLocation(DataFlow::Node sink) {
|
||||||
exists(SqliteFunctionCall sqliteCall | result = sqliteCall.getLocation() |
|
exists(SqliteFunctionCall sqliteCall | result = [sqliteCall.getLocation(), sink.getLocation()] |
|
||||||
isSinkImpl(sink, sqliteCall, _)
|
isSinkImpl(sink, sqliteCall, _)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user