mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
vulkan: Fix out-of-bound read
G_N_ELEMENTS is the *number* of entries, not the maximum entry number CID #1417215
This commit is contained in:
parent
d4afba794a
commit
87dbd558cc
1 changed files with 1 additions and 1 deletions
|
@ -777,7 +777,7 @@ _upload_find_method (GstVulkanUpload * vk_upload)
|
|||
{
|
||||
vk_upload->current_impl++;
|
||||
|
||||
if (vk_upload->current_impl > G_N_ELEMENTS (upload_methods))
|
||||
if (vk_upload->current_impl >= G_N_ELEMENTS (upload_methods))
|
||||
return FALSE;
|
||||
|
||||
GST_DEBUG_OBJECT (vk_upload, "attempting upload with uploader %s",
|
||||
|
|
Loading…
Reference in a new issue