mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
Removed taint from ArrayBuffer constructor as it accepts length
This commit is contained in:
@@ -74,20 +74,6 @@ private class ArrayBufferEntryPoint extends API::EntryPoint {
|
||||
pragma[nomagic]
|
||||
API::Node arrayBufferConstructorRef() { result = any(ArrayBufferEntryPoint a).getANode() }
|
||||
|
||||
class ArrayBufferConstructorSummary extends SummarizedCallable {
|
||||
ArrayBufferConstructorSummary() { this = "ArrayBuffer constructor" }
|
||||
|
||||
override DataFlow::InvokeNode getACall() {
|
||||
result = arrayBufferConstructorRef().getAnInstantiation()
|
||||
}
|
||||
|
||||
override predicate propagatesFlow(string input, string output, boolean preservesValue) {
|
||||
preservesValue = true and
|
||||
input = "Argument[0].ArrayElement" and
|
||||
output = "ReturnValue.ArrayElement"
|
||||
}
|
||||
}
|
||||
|
||||
class TransferLike extends SummarizedCallable {
|
||||
TransferLike() { this = "ArrayBuffer#transfer" }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user