Skip to content

Commit d80a033

Browse files
authored
Merge pull request github#3719 from dbartol/github/codeql-c-analysis-team/69-consistency
C++/C#: Fix a couple new consistency failures, and improve consistency messages
2 parents d7d00bd + 881b3c8 commit d80a033

22 files changed

+1647
-2019
lines changed

cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/IRConsistency.qll

Lines changed: 256 additions & 90 deletions
Large diffs are not rendered by default.

cpp/ql/src/semmle/code/cpp/ir/implementation/raw/IRConsistency.qll

Lines changed: 256 additions & 90 deletions
Large diffs are not rendered by default.

cpp/ql/src/semmle/code/cpp/ir/implementation/raw/internal/TranslatedElement.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ newtype TTranslatedElement =
463463
)
464464
} or
465465
// The side effects of an allocation, i.e. `new`, `new[]` or `malloc`
466-
TTranslatedAllocationSideEffects(AllocationExpr expr) or
466+
TTranslatedAllocationSideEffects(AllocationExpr expr) { not ignoreExpr(expr) } or
467467
// A precise side effect of an argument to a `Call`
468468
TTranslatedArgumentSideEffect(Call call, Expr expr, int n, boolean isWrite) {
469469
(

0 commit comments

Comments
 (0)