VTK::ChartsCoreCxx-TestLinePlotDouble performs illegal conversion of too-large double to float
See: https://open.cdash.org/testDetails.php?test=868877365&build=6460445
/Users/builder/external/VTK/Charts/Core/vtkPlotPoints.cxx:612:42: runtime error: value -8.41471e+79 is outside the range of representable values of type 'float'
SUMMARY: AddressSanitizer: undefined-behavior /Users/builder/external/VTK/Charts/Core/vtkPlotPoints.cxx:612:42 in
This comes from lines 61-63 here: https://gitlab.kitware.com/vtk/vtk/-/blob/master/Charts/Core/Testing/Cxx/TestLinePlotDouble.cxx
I followed this down the rabbit hole, but it needs someone that knows these classes. ex:
https://gitlab.kitware.com/vtk/vtk/-/blob/master/Charts/Core/vtkPlotPoints.cxx
lines 604-627 (and elsewhere!) have various hardcoded expectations that the data is always float
, there doesn't seem to be any support for double
. There isn't even an #include "vtkDoubleArray.h"
.
Or maybe the test should just be changed to use smaller numbers?
Edited by Sean McBride