add comment about parameters named "code"

This commit is contained in:
Erik Krogh Kristensen
2021-05-13 17:49:17 +02:00
parent 53315e6ab6
commit 681179dcbb

View File

@@ -24,6 +24,7 @@ module UnsafeCodeConstruction {
class ExternalInputSource extends Source, DataFlow::ParameterNode {
ExternalInputSource() {
this = Exports::getALibraryInputParameter() and
// permit parameters that clearly are intended to contain executable code.
not this.getName() = "code"
}
}