Skip to content

Commit

Permalink
Merge pull request #15371 from geoffw0/mad
Browse files Browse the repository at this point in the history
C++: Implement models-as-data
  • Loading branch information
MathiasVP authored Apr 16, 2024
2 parents 58635bd + 1c66e26 commit 2627a3d
Show file tree
Hide file tree
Showing 44 changed files with 2,737 additions and 222 deletions.
4 changes: 4 additions & 0 deletions cpp/ql/lib/change-notes/2024-10-04-getc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
category: minorAnalysis
---
* Source models have been added for the standard library function `getc` (and variations).
4 changes: 4 additions & 0 deletions cpp/ql/lib/change-notes/2024-10-04-models-as-data.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
category: feature
---
* Models-as-Data support has been added for C/C++. This feature allows flow sources, sinks and summaries to be expressed in compact strings as an alternative to modelling each source / sink / summary with explicit QL. See `dataflow/ExternalFlow.qll` for documentation and specification of the model format, and `models/implementations/ZMQ.qll` for a simple example of models. Importing models from `.yml` is not yet supported.
4 changes: 4 additions & 0 deletions cpp/ql/lib/change-notes/2024-10-04-zmq.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
category: minorAnalysis
---
* Source, sink and flow models for the ZeroMQ (ZMQ) networking library have been added.
1 change: 1 addition & 0 deletions cpp/ql/lib/qlpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ library: true
upgrades: upgrades
dependencies:
codeql/dataflow: ${workspace}
codeql/mad: ${workspace}
codeql/rangeanalysis: ${workspace}
codeql/ssa: ${workspace}
codeql/typeflow: ${workspace}
Expand Down
Loading

0 comments on commit 2627a3d

Please sign in to comment.