mirror of
https://github.com/github/codeql.git
synced 2026-02-28 21:03:50 +01:00
Java: Allow null literals as sources in data flow.
This commit is contained in:
@@ -235,6 +235,8 @@ DataFlowType getErasedRepr(Type t) {
|
||||
then result.(BoxedType).getPrimitiveType().getName() = "boolean"
|
||||
else result = e
|
||||
)
|
||||
or
|
||||
t instanceof NullType and result instanceof TypeObject
|
||||
}
|
||||
|
||||
/** Gets a string representation of a type returned by `getErasedRepr`. */
|
||||
|
||||
Reference in New Issue
Block a user