Add test for layer_prop_list out of bounds indexing
authorCharles Giessen <charles@lunarg.com>
Fri, 23 Jun 2023 03:42:26 +0000 (21:42 -0600)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Fri, 23 Jun 2023 04:27:45 +0000 (22:27 -0600)
commit5525f02363cab9d2e47c288ae113f1221b6a649d
treecbfdb5ed9dce45037b8fbb0d55816a38b8ca3da0
parent44211ff2337104a934555a869343b99f52e05815
Add test for layer_prop_list out of bounds indexing

This test makes sure that we correctly query for unknown functions implemented
only in a single layer while there are other layers present. This commit
successfully reproduces the error that the previous commit fixes. It was
difficult to reproduce because to get an crash, the test has to have the
instance_layer_list be in a different order than how they appear in
expanded_activated_layer_list.
tests/loader_unknown_ext_tests.cpp