minor fixes

This commit is contained in:
Erik Krogh Kristensen
2022-04-13 10:11:07 +02:00
parent b13e7c055b
commit 41bdd8f4da
3 changed files with 3 additions and 5 deletions

View File

@@ -28,9 +28,7 @@ module ResourceExhaustion {
abstract class Sanitizer extends DataFlow::Node { }
/** A source of remote user input, considered as a data flow source for resource exhaustion vulnerabilities. */
class RemoteFlowSourceAsSource extends Source {
RemoteFlowSourceAsSource() { this instanceof RemoteFlowSource }
}
class RemoteFlowSourceAsSource extends Source instanceof RemoteFlowSource { }
/**
* A node that determines the repetitions of a string, considered as a data flow sink for resource exhaustion vulnerabilities.

View File

@@ -4,7 +4,7 @@ var http = require("http"),
var server = http.createServer(function(req, res) {
var size = parseInt(url.parse(req.url, true).query.size);
let dogs = new Array(size).fill(x => "dog"); // BAD
let dogs = new Array(size).fill("dog"); // BAD
// ... use the dog
});

View File

@@ -10,7 +10,7 @@ var server = http.createServer(function(req, res) {
return;
}
let dogs = new Array(size).fill(x => "dog"); // GOOD
let dogs = new Array(size).fill("dog"); // GOOD
// ... use the dogs
});