Page MenuHome

Fix T89367: Reject negative indices in EDBM_elem_from_index_any
AbandonedPublic

Authored by Fen (chemicalcrux) on Jun 22 2021, 6:17 PM.

Details

Summary

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