LinearInterpolation can access out of bounds with NaN input #30157
Labels
C: Framework
P: normal
A defect affecting operation with a low possibility of significantly affects.
T: defect
An anomaly, which is anything that deviates from expectations.
Bug Description
In
LinearInterpolation
, if you dosample(x)
andx
is a NaN, then it will try and access out of bounds in this:If no upper bound exists for
x
(as in the case of nan),upper = _x.end()
and theni = _x.size() - 1
, which is a problem fory[i + 1]
.Steps to Reproduce
See above.
Impact
Garbage results if nan values are input to object.
[Optional] Diagnostics
No response
The text was updated successfully, but these errors were encountered: