VectorHelper::convertToBinBoundary segfault for empty input vector #12897
Labels
Bug
Issues and pull requests that are regressions or would be considered a bug by users (e.g. crashing)
Milestone
VectorHelper::convertToBinBoundary
does not work for an empty input vectorbin_centers
. The segfault is probably caused by a signed/unsigned issue/underflow in the main loop of the function and out of bounds access ofbin_centers
.I don't know if this is maybe intended behavior (i.e., empty vectors do not occur or are forbidden). If not, maybe return an empty vector
bin_edges
?The text was updated successfully, but these errors were encountered: