Skip to content

Commit 2118f23

Browse files
committed
Python: model optparse.OptionParser.parse_arg
1 parent b80a711 commit 2118f23

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/ql/lib/semmle/python/frameworks/Stdlib/StdLib.model.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ extensions:
1313
pack: codeql/python-all
1414
extensible: summaryModel
1515
data:
16+
# See https://docs.python.org/3/library/optparse.html#optparse.OptionParser.parse_args
17+
- ["optparse.OptionParser", "Member[parse_args]", "Argument[0,args:,1,values:]", "ReturnValue.TupleElement[0,1]", "taint"]
1618
# See https://docs.python.org/3/library/urllib.parse.html#urllib.parse.quote
1719
- ["urllib", "Member[parse].Member[quote]", "Argument[0,string:]", "ReturnValue", "taint"]
1820
# See https://docs.python.org/3/library/urllib.parse.html#urllib.parse.quote_plus

0 commit comments

Comments
 (0)