Geoffrey White
|
dd96095a30
|
Apply suggestions from code review
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com>
|
2024-04-10 17:20:35 +01:00 |
|
Geoffrey White
|
e0f866f19d
|
Merge branch 'main' into mad
|
2024-04-10 14:58:52 +01:00 |
|
Mathias Vorreiter Pedersen
|
a53ef495ee
|
C++: Simplify 'hasExactBufferType' and add comments.
|
2024-04-09 16:04:20 +01:00 |
|
Mathias Vorreiter Pedersen
|
291cc0a671
|
C++: Anonymous namespaces provide internal linkage.
|
2024-04-09 15:25:13 +01:00 |
|
Mathias Vorreiter Pedersen
|
2a7420ce11
|
Update cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/TypeFlow.qll
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com>
|
2024-04-09 15:00:23 +01:00 |
|
Mathias Vorreiter Pedersen
|
e9cd2dc9e1
|
C++: Implement 'lambdaCreation' and 'lambdaCall' for models-as-data.
|
2024-04-09 14:05:32 +01:00 |
|
Geoffrey White
|
4d5f158652
|
C++: Pivot ReturnKind solution to derive types from SSA + AST, rather than SSA + MAD.
|
2024-04-09 13:49:21 +01:00 |
|
Geoffrey White
|
13734d4e62
|
C++: Improve indirectionForModelledFunction.
|
2024-04-09 12:06:03 +01:00 |
|
Mathias Vorreiter Pedersen
|
448a9015c0
|
C++: Compute the number of indirections from MaD using a new predicate.
|
2024-04-09 10:33:06 +01:00 |
|
Mathias Vorreiter Pedersen
|
21592563cb
|
C++: Define 'ReturnKind's in terms of SSA instead of 'Function'.
|
2024-04-09 10:32:31 +01:00 |
|
Mathias Vorreiter Pedersen
|
b2002a981a
|
C++: Use the shared typeflow library to determine whether a pointer points to a buffer or an object.
|
2024-04-08 21:25:05 +01:00 |
|
Geoffrey White
|
c0c1ab7006
|
C++: Fix code scanning warnings.
|
2024-04-08 16:05:55 +01:00 |
|
Geoffrey White
|
b2b2c2016c
|
C++: Update more QLDoc.
|
2024-04-08 16:04:23 +01:00 |
|
Geoffrey White
|
ec515f967d
|
C++: Update QLDoc.
|
2024-04-08 11:57:35 +01:00 |
|
Geoffrey White
|
bdc3d10cdb
|
C++: QLDoc SummaryCall, SourceCallable and SummarizedCallable.
|
2024-04-04 17:13:59 +01:00 |
|
Geoffrey White
|
a8742ea111
|
C++: PascalCase and US spelling fixes.
|
2024-04-03 14:17:55 +01:00 |
|
Geoffrey White
|
f1ead2554f
|
C++: Trivial merge fixes.
|
2024-04-02 16:15:05 +01:00 |
|
Geoffrey White
|
33164c8a43
|
Merge branch 'main' into mad
|
2024-04-02 16:14:53 +01:00 |
|
Jeroen Ketema
|
a5d4fad806
|
C++: Output destructor calls for delete expressions
|
2024-04-02 10:32:03 +02:00 |
|
Geoffrey White
|
03d0d984e3
|
C++: Remove duplicate TDataFlowCallable's and fix three places where we assumed a source callable (two of them would have caused lost results).
|
2024-03-28 11:39:43 +00:00 |
|
Geoffrey White
|
a55f07ac68
|
C++: QLDoc FlowSummaryNode.
|
2024-03-28 10:17:39 +00:00 |
|
Geoffrey White
|
507ada1951
|
C++: Sort out the localFlow / simpleLocalFlow confusion (and the same for taint).
|
2024-03-27 16:05:35 +00:00 |
|
Mathias Vorreiter Pedersen
|
7bb2b57394
|
Merge pull request #15964 from rdmarsh2/rdmarsh2/cpp/temp-destructors-extended
C++: IR translation for destruction of temporaries with extended lifetimes
|
2024-03-27 11:58:48 +00:00 |
|
Mathias Vorreiter Pedersen
|
3bfaab9182
|
C++: Remove debugging conjunct.
|
2024-03-26 17:01:06 +00:00 |
|
Mathias Vorreiter Pedersen
|
6a8c592900
|
Update cpp/ql/lib/semmle/code/cpp/ir/dataflow/FlowSteps.qll
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com>
|
2024-03-26 16:59:18 +00:00 |
|
Mathias Vorreiter Pedersen
|
d610d721a4
|
C++: Add file QLDoc.
|
2024-03-26 16:47:39 +00:00 |
|
Mathias Vorreiter Pedersen
|
2075716df7
|
C++: Add 'TaintInheritingContent'.
|
2024-03-26 16:37:22 +00:00 |
|
Geoffrey White
|
8fbbc2b6d8
|
C++: Improve QLDoc.
|
2024-03-26 11:21:25 +00:00 |
|
Geoffrey White
|
76780d74d9
|
C++: Unify four implementations of repeatStars. Note that the recursive approach is faster for very large strings (well over 100 stars), while the concat approach appears to be faster for short strings and does not require an upper bound.
|
2024-03-25 18:10:21 +00:00 |
|
Geoffrey White
|
b598b4ac45
|
C++: Fix for field content indirection (1-based).
|
2024-03-25 11:20:55 +00:00 |
|
Geoffrey White
|
14deb06e80
|
C++: Implement Argument + Parameter indirection.
|
2024-03-25 11:20:55 +00:00 |
|
Mathias Vorreiter Pedersen
|
9179f0bda6
|
Merge pull request #15969 from MathiasVP/disable-some-constant-folding
C++: Disable _some_ constant folding in IR
|
2024-03-20 09:25:06 +00:00 |
|
Mathias Vorreiter Pedersen
|
6bf1611f10
|
C++: Fix comments.
|
2024-03-19 16:26:37 +00:00 |
|
Mathias Vorreiter Pedersen
|
357a2ba733
|
C++: Sync identical files.
|
2024-03-19 16:24:11 +00:00 |
|
Mathias Vorreiter Pedersen
|
458ee13345
|
C++: Add constant analysis for bitwise operations now that these are no longer constant folded by IR construction.
|
2024-03-19 16:23:57 +00:00 |
|
Robert Marsh
|
5a30ad162a
|
C++: Add a comment for ReusedExpr IR translation
|
2024-03-19 15:54:52 +00:00 |
|
Robert Marsh
|
3d4f7d880d
|
C++: unsuppress destructoion of temporaries with extended lifetimes
|
2024-03-19 15:54:42 +00:00 |
|
Robert Marsh
|
ba10ea8121
|
C++: ReuseExpr IR translation
|
2024-03-19 15:50:28 +00:00 |
|
Mathias Vorreiter Pedersen
|
597f0082e7
|
Merge pull request #15958 from MathiasVP/ir-guards-from-switch-statements-2
C++: Implement guards logic for switch statements
|
2024-03-19 13:21:45 +00:00 |
|
Mathias Vorreiter Pedersen
|
a88d8b260d
|
C++: Only ignore constant folding for certain binary operations.
|
2024-03-19 13:17:49 +00:00 |
|
Mathias Vorreiter Pedersen
|
a97891cbc1
|
C++: Add QLDoc to 'getNumberOfBinaryOperands' (and rename it to 'getNumberOfNestedBinaryOperands').
|
2024-03-19 12:56:15 +00:00 |
|
Mathias Vorreiter Pedersen
|
4d3076ae7e
|
C++: Don't constant fold small binary operations.
|
2024-03-19 11:46:51 +00:00 |
|
Tom Hvitved
|
fc55567d90
|
Merge pull request #15853 from hvitved/dataflow/get-location
Data flow: Replace `hasLocationInfo` with `getLocation`
|
2024-03-18 20:21:46 +01:00 |
|
Mathias Vorreiter Pedersen
|
a21eea4ee0
|
C++: Generalize more predicates from booleans to abstract values.
|
2024-03-18 16:07:57 +00:00 |
|
Mathias Vorreiter Pedersen
|
7fdea27d33
|
C++: Rename 'IndirectTemporaryExpr' to 'IndirectOperandExprNode'.
|
2024-03-14 11:46:15 +00:00 |
|
Geoffrey White
|
f208594067
|
Merge branch 'main' into mad
|
2024-03-14 09:44:45 +00:00 |
|
Mathias Vorreiter Pedersen
|
dacf7d73d9
|
Merge pull request #15918 from MathiasVP/fix-as-expr-for-temps
C++: Fix dataflow node <> expression problem on prvalues
|
2024-03-14 09:38:46 +00:00 |
|
Mathias Vorreiter Pedersen
|
a24432bacc
|
Update cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll
|
2024-03-14 09:23:33 +00:00 |
|
Mathias Vorreiter Pedersen
|
c375497fa5
|
Update cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll
|
2024-03-14 09:16:04 +00:00 |
|
Mathias Vorreiter Pedersen
|
a839c92979
|
C++: Fix mapping issue between dataflow nodes and expressions when the expression is a prvalue.
|
2024-03-13 22:59:09 +00:00 |
|