Inline getOptionsArgument

This commit is contained in:
edvraa
2021-05-03 00:09:15 +03:00
parent 3aec9c1a41
commit 7ab91bb185
2 changed files with 2 additions and 2 deletions

View File

@@ -169,7 +169,7 @@ class InvokeNode extends DataFlow::SourceNode {
* Holds if the `i`th argument of this invocation is an object literal set to `result`.
*/
pragma[noinline]
ObjectLiteralNode getOptionsArgument(int i) { result.flowsTo(getArgument(i)) }
private ObjectLiteralNode getOptionsArgument(int i) { result.flowsTo(getArgument(i)) }
/** Gets an abstract value representing possible callees of this call site. */
final AbstractValue getACalleeValue() {

View File

@@ -75,7 +75,7 @@ module Cookie {
class InsecureCookieSession extends ExpressLibraries::CookieSession::MiddlewareInstance, Cookie {
override string getKind() { result = "cookie-session" }
override DataFlow::SourceNode getCookieOptionsArgument() { result = this.getOptionsArgument(0) }
override DataFlow::SourceNode getCookieOptionsArgument() { result.flowsTo(getArgument(0)) }
private DataFlow::Node getCookieFlagValue(string flag) {
result = this.getCookieOptionsArgument().getAPropertyWrite(flag).getRhs()