We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e04a9b5 commit e04c77cCopy full SHA for e04c77c
go/ql/lib/semmle/go/security/TaintedPathCustomizations.qll
@@ -71,10 +71,10 @@ module TaintedPath {
71
}
72
73
/**
74
- * A numeric-typed node, considered a sanitizer for path traversal.
+ * A numeric- or boolean-typed node, considered a sanitizer for path traversal.
75
*/
76
- class NumericSanitizer extends Sanitizer {
77
- NumericSanitizer() {
+ class NumericOrBooleanSanitizer extends Sanitizer {
+ NumericOrBooleanSanitizer() {
78
this.getType() instanceof NumericType or this.getType() instanceof BoolType
79
80
0 commit comments