From e3155ea54420c7508ec157f4be3d9f8c60f7932a Mon Sep 17 00:00:00 2001 From: Taus Date: Tue, 21 Apr 2026 16:03:38 +0000 Subject: [PATCH] Python: Handle dict unpacking in calls Co-authored-by: yoff --- .../ql/lib/semmle/python/controlflow/internal/AstNodeImpl.qll | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/ql/lib/semmle/python/controlflow/internal/AstNodeImpl.qll b/python/ql/lib/semmle/python/controlflow/internal/AstNodeImpl.qll index c57cd697373..c5e2d010688 100644 --- a/python/ql/lib/semmle/python/controlflow/internal/AstNodeImpl.qll +++ b/python/ql/lib/semmle/python/controlflow/internal/AstNodeImpl.qll @@ -364,6 +364,8 @@ private module Ast { ExprNode getKeywordValue(int n) { result.asExpr() = call.getNamedArg(n).(Py::Keyword).getValue() + or + result.asExpr() = call.getNamedArg(n).(Py::DictUnpacking).getValue() } int getNumberOfNamedArgs() { result = count(call.getANamedArg()) }