mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
minor fixes
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
});
|
||||
@@ -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
|
||||
});
|
||||
Reference in New Issue
Block a user