video: Fix possible overrun when iterating comp[] array
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 19 Apr 2022 15:05:05 +0000 (11:05 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 19 Apr 2022 15:12:42 +0000 (11:12 -0400)
commitb7ded5138268cc502028304b28ad698944aa7d59
tree868882d6efcc8860023892540bdf4fcf0e5a6546
parente0ad0eda23940c56da2e6a1c44737cc18920e5b4
video: Fix possible overrun when iterating comp[] array

Fix 2 iterations that can overrun the array if the number of component is
equal to the size of the array.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2239>
subprojects/gst-plugins-base/gst-libs/gst/video/video-format.c
subprojects/gst-plugins-base/gst-libs/gst/video/video-frame.c