Open
Description
The existing validation layer detects handle leaks and incorrect use of get/retain/release APIs for handle lifetime management. It's only capable of detecting use-after-free if it happens to be in one of the lifetime management calls.
Given the existing implementation that already tracks handles, the validation layer should be extended to also detect use-after-free and, in general, use of invalid handles across the entire API.