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 34de400 commit 13b2b76Copy full SHA for 13b2b76
go/ql/lib/semmle/go/security/TaintedPathCustomizations.qll
@@ -70,6 +70,15 @@ module TaintedPath {
70
PathAsSink() { this = any(FileSystemAccess fsa).getAPathArgument() }
71
}
72
73
+ /**
74
+ * A numeric-typed node, considered a sanitizer for path traversal.
75
+ */
76
+ class NumericSanitizer extends Sanitizer {
77
+ NumericSanitizer() {
78
+ this.getType() instanceof NumericType or this.getType() instanceof BoolType
79
+ }
80
81
+
82
/**
83
* A call to `filepath.Rel`, considered as a sanitizer for path traversal.
84
*/
0 commit comments