Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python: Several standard library models #17454

Merged
merged 28 commits into from
Oct 3, 2024
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
df406b4
python: Start modelling using MaD
yoff Feb 2, 2024
281ac05
python: add modelling for `urlib.parse`
yoff Mar 8, 2024
c004ffa
python: move model to `Stdlib.yml`
yoff Mar 14, 2024
d410136
python: compress models
yoff Apr 9, 2024
1e97600
Python: move models
yoff Apr 9, 2024
b80a711
python: undo changes to qlpack
yoff Apr 9, 2024
2118f23
Python: model optparse.OptionParser.parse_arg
yoff Jun 25, 2024
501cda4
Python: model `fnmatch.filter`
yoff Jun 25, 2024
bc55117
Python: model `copy.deepcopy` as a value step
yoff Jun 25, 2024
bdc4808
Python: MaD summary models
yoff Jun 25, 2024
eb32cbe
Python: codecs.open
yoff Jun 25, 2024
571be8b
Python: model more loggers
yoff Jun 25, 2024
b261145
Python: fix compilation
yoff Jun 26, 2024
a3076f4
Python: fix test expectations, add missing sanitizer
yoff Jun 26, 2024
bbc3ff2
Apply suggestions from code review
yoff Jun 28, 2024
59f9532
Python: remove strange sink
yoff Jun 28, 2024
5ddfe75
Python: Add value steps for sequence elements
yoff Jun 28, 2024
77a0087
Python: add tests for loggers
yoff Jun 28, 2024
e40ae2e
Python: adjust test expectations
yoff Jun 28, 2024
e30f725
Python: Remove questionable model for `multiprocessing.connection.Lis…
yoff Jul 22, 2024
3434c38
Python: update test expectations
yoff Jul 22, 2024
f95926e
Python: add change note
yoff Sep 24, 2024
e7f9b5b
Merge branch 'main' into stdlib-optparse
yoff Sep 24, 2024
2eac11e
Update python/ql/lib/change-notes/2024-09-24-std-lib-models.md
yoff Oct 1, 2024
7816f34
Merge branch 'main' into stdlib-optparse
yoff Oct 1, 2024
cef8744
Python: consolidate models in one file
yoff Oct 1, 2024
05910de
Python: MaD expectations
yoff Oct 1, 2024
56d0aff
Update python/ql/lib/semmle/python/frameworks/Stdlib.model.yml
yoff Oct 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
python: compress models
  • Loading branch information
yoff committed Jun 25, 2024
commit d410136852410110010987d5d6476ff8f7562324
6 changes: 2 additions & 4 deletions python/ql/lib/ext/StdLib.model.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ extensions:
# See https://docs.python.org/3/library/urllib.parse.html#urllib.parse.quote_plus
- ["urllib", "Member[parse].Member[quote_plus]", "Argument[0,string:]", "ReturnValue", "taint"]
# See https://epydoc.sourceforge.net/stdlib/urllib-module.html
- ["urllib", "Member[parse].Member[splitquery]", "Argument[0,url:]", "ReturnValue.TupleElement[0]", "taint"]
- ["urllib", "Member[parse].Member[splitquery]", "Argument[0,url:]", "ReturnValue.TupleElement[1]", "taint"]
- ["urllib", "Member[parse].Member[splitquery]", "Argument[0,url:]", "ReturnValue.TupleElement[0,1]", "taint"]
# See https://docs.python.org/3/library/urllib.parse.html#urllib.parse.unquote
- ["urllib", "Member[parse].Member[unquote]", "Argument[0,string:]", "ReturnValue", "taint"]
# See https://docs.python.org/3/library/urllib.parse.html#urllib.parse.unquote_plus
Expand All @@ -28,8 +27,7 @@ extensions:
# See https://docs.python.org/3/library/urllib.parse.html#urllib.parse.urlencode
- ["urllib", "Member[parse].Member[urlencode]", "Argument[0,query:]", "ReturnValue", "taint"]
# See https://docs.python.org/3/library/urllib.parse.html#urllib.parse.urljoin
- ["urllib", "Member[parse].Member[urljoin]", "Argument[0,base:]", "ReturnValue", "taint"]
- ["urllib", "Member[parse].Member[urljoin]", "Argument[1,url:]", "ReturnValue", "taint"]
- ["urllib", "Member[parse].Member[urljoin]", "Argument[0,base:,1,url:]", "ReturnValue", "taint"]
- addsTo:
pack: codeql/python-all
extensible: neutralModel
Expand Down