mirror of
https://github.com/github/codeql.git
synced 2026-04-21 15:05:56 +02:00
Update cpp/ql/src/Security/CWE/CWE-416/Temporaries.qll
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com>
This commit is contained in:
committed by
GitHub
parent
49e1467581
commit
c68d3c5983
@@ -45,7 +45,7 @@ predicate isStoredInContainer(Expr e) {
|
||||
/**
|
||||
* Holds if `e` or a conversion of `e` has an lvalue-to-rvalue conversion.
|
||||
*/
|
||||
predicate hasLValueToRValueConversion(Expr e) {
|
||||
private predicate hasLValueToRValueConversion(Expr e) {
|
||||
e.getConversion*().hasLValueToRValueConversion() and
|
||||
not e instanceof ConditionalExpr // ConditionalExpr may be spuriously reported as having an lvalue-to-rvalue conversion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user