mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2025-02-16 17:12:29 +00:00
Fix UAF in debug utils names setup (#2243)
This commit is contained in:
parent
ac21fa9db5
commit
65faf9b937
@ -1042,7 +1042,9 @@ impl Device {
|
||||
let info = ash::vk::DebugUtilsObjectNameInfoEXT {
|
||||
object_type: T::Handle::TYPE,
|
||||
object_handle: object.handle().as_raw(),
|
||||
p_object_name: object_name_vk.map_or(ptr::null(), |object_name| object_name.as_ptr()),
|
||||
p_object_name: object_name_vk
|
||||
.as_ref()
|
||||
.map_or(ptr::null(), |object_name| object_name.as_ptr()),
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user