Fixes an out of bound memory access in the RollForOversubscription caused by the change of the default value of the binIndex particle attribute introduced in PR #5079.
Previously it was safe to do a lockup in the RejectionProbabilityCache independent of the processClass since, the ion binIndex attribute was guaranteed to always be a valid value, independent of the previously selected process class.
If the processClass did not belong to a histogram using process this value was simply ignored.
Now only ions with a histogram using processClass are guaranteed to have a valid binIndex since we do not set a binIndex unless required for performance reasons. With the new invalid default values this causes an illegal memory access error.
Fixes an out of bound memory access in the RollForOversubscription caused by the change of the default value of the
binIndex
particle attribute introduced in PR #5079.Previously it was safe to do a lockup in the
RejectionProbabilityCache
independent of theprocessClass
since, the ionbinIndex
attribute was guaranteed to always be a valid value, independent of the previously selected process class. If theprocessClass
did not belong to a histogram using process this value was simply ignored.Now only ions with a histogram using
processClass
are guaranteed to have a validbinIndex
since we do not set a binIndex unless required for performance reasons. With the new invalid default values this causes an illegal memory access error.