mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Use _ instead of exists variable x2
This commit is contained in:
@@ -349,10 +349,8 @@ private module Internal {
|
|||||||
varBlockReachesBaseCand(v, b1, b2) and
|
varBlockReachesBaseCand(v, b1, b2) and
|
||||||
blockPrecedesVar(v, b2)
|
blockPrecedesVar(v, b2)
|
||||||
or
|
or
|
||||||
exists(ReachableBasicBlock mid |
|
varBlockReachesRecCand(v, b1, _, b2) and
|
||||||
varBlockReachesRecCand(v, b1, mid, b2) and
|
blockPrecedesVar(v, b2)
|
||||||
blockPrecedesVar(v, b2)
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -79,9 +79,7 @@ module LogInjection {
|
|||||||
*/
|
*/
|
||||||
private class SafeFormatArgumentSanitizer extends Sanitizer {
|
private class SafeFormatArgumentSanitizer extends Sanitizer {
|
||||||
SafeFormatArgumentSanitizer() {
|
SafeFormatArgumentSanitizer() {
|
||||||
exists(DataFlow::Node arg, StringOps::Formatting::StringFormatCall call |
|
exists(StringOps::Formatting::StringFormatCall call | safeFormatArgument(_, call) |
|
||||||
safeFormatArgument(arg, call)
|
|
||||||
|
|
|
||||||
this = call.getAResult()
|
this = call.getAResult()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user