mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
spa: v4l2: avoid integer wraparound to out of bounds read
I'm not sure if untrusted input can reach this point.
This commit is contained in:
parent
2c2808fab1
commit
5bfc3e6b03
1 changed files with 1 additions and 1 deletions
|
|
@ -399,7 +399,7 @@ enum_filter_format(uint32_t media_type, int32_t media_subtype,
|
|||
if (index == 0)
|
||||
video_format = values[0];
|
||||
} else {
|
||||
if (index + 1 < n_values)
|
||||
if (index < n_values - 1)
|
||||
video_format = values[index + 1];
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue