You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NilAway currently doesn't track nilability dependencies between 2 independent variables. This can result in false positives, such as in the example shown below. This is a hard problem, in general. We can perhaps think of adding intra-procedural support, which is a relatively tractable problem, leaving out inter-procedural tracking for the future.
func foo(x *int) {
var y *int
var z int
if x != nil {
y = x
z = 1
}
if z == 1 {
_ = *y // FP reported here
}
}
func test() {
i := 1
foo(&i)
}
The text was updated successfully, but these errors were encountered:
NilAway currently doesn't track nilability dependencies between 2 independent variables. This can result in false positives, such as in the example shown below. This is a hard problem, in general. We can perhaps think of adding intra-procedural support, which is a relatively tractable problem, leaving out inter-procedural tracking for the future.
The text was updated successfully, but these errors were encountered: