Skip to content

v3dv: duplicate key on hashtable insert

The key is created on stack, so as soon as the function returns this key is lost, so the inserted key in the hashtable is invalid.

Rather, insert a duplicated version on heap.

This fixes a stack-buffer-overflow when running some Vulkan CTS tests.

Merge request reports