mirror of
https://github.com/github/codeql.git
synced 2025-12-21 03:06:31 +01:00
Fix bug in CPP range analysis.
This commit is contained in:
@@ -259,7 +259,7 @@ private predicate safeCast(IntegralType fromtyp, IntegralType totyp) {
|
|||||||
|
|
||||||
private class SafeCastInstruction extends ConvertInstruction {
|
private class SafeCastInstruction extends ConvertInstruction {
|
||||||
SafeCastInstruction() {
|
SafeCastInstruction() {
|
||||||
safeCast(getResultType(), getUnary().getResultType())
|
safeCast(getUnary().getResultType(), getResultType())
|
||||||
or
|
or
|
||||||
getResultType() instanceof PointerType and
|
getResultType() instanceof PointerType and
|
||||||
getUnary().getResultType() instanceof PointerType
|
getUnary().getResultType() instanceof PointerType
|
||||||
|
|||||||
Reference in New Issue
Block a user