aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/vaapi_encode.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2019-09-18 05:25:58 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-07-02 10:15:07 +0200
commit41fba5d5a0331573087a93ac7bbd5c28c547bc17 (patch)
treeed4aa4f6e32cc40c2c555792966340955b682b04 /doc/examples/vaapi_encode.c
parent2bcf99b8fa099d125c4bf7ef6782dd37e52c16ad (diff)
downloadffmpeg-41fba5d5a0331573087a93ac7bbd5c28c547bc17.tar.gz
avcodec/cbs_h2645: Fix potential out-of-bounds array access
The maximum allowed index for an array access is FF_ARRAY_ELEMS - 1; yet the current code allowed FF_ARRAY_ELEMS. This wasn't dangerous in practice, as parameter sets with invalid ids were already filtered out during reading. Found via PVS-Studio (see ticket #8156). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> (cherry picked from commit f3333c3c67e8825a4468120bb8aa0943c72c03f3) Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'doc/examples/vaapi_encode.c')
0 files changed, 0 insertions, 0 deletions