mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Broaden PrimitiveSanitizer to include boxed primitives and other java.lang.Numbers
This commit is contained in:
@@ -215,7 +215,11 @@ private class SpringRestTemplateUrlMethodAccess extends MethodAccess {
|
||||
abstract class RequestForgerySanitizer extends DataFlow::Node { }
|
||||
|
||||
private class PrimitiveSanitizer extends RequestForgerySanitizer {
|
||||
PrimitiveSanitizer() { this.getType() instanceof PrimitiveType }
|
||||
PrimitiveSanitizer() {
|
||||
this.getType() instanceof PrimitiveType or
|
||||
this.getType() instanceof BoxedType or
|
||||
this.getType() instanceof NumberType
|
||||
}
|
||||
}
|
||||
|
||||
private class HostnameSanitizingPrefix extends CompileTimeConstantExpr {
|
||||
|
||||
Reference in New Issue
Block a user