This revision fixes T89367. It returns NULL from EDBM_elem_from_index_any when the index is less than zero.
Since this should normally never happen, I wrapped the check in an UNLIKELY macro.
Differential D11672
Fix T89367: Reject negative indices in EDBM_elem_from_index_any Authored by Fen (chemicalcrux) on Jun 22 2021, 6:17 PM.
Details
This revision fixes T89367. It returns NULL from EDBM_elem_from_index_any when the index is less than zero. Since this should normally never happen, I wrapped the check in an UNLIKELY macro.
Diff Detail Event Timeline |