aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/avio_read_callback.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-02-18 18:52:25 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-02-21 01:04:28 +0100
commit1eafbc27e2d3824b2fd3123bd78c25bc60fed8ba (patch)
treedf0e96040933a1f45920be05edab00e80386a12f /doc/examples/avio_read_callback.c
parent1d66a122df9fd5d8400b05c74462d0082990fc01 (diff)
downloadffmpeg-1eafbc27e2d3824b2fd3123bd78c25bc60fed8ba.tar.gz
avcodec/vvc/vvc_ps: Check before access
max_bin_idx can be at most LMCS_MAX_BIN_SIZE - 1 here, so pivot[LCMS_MAX_BIN_SIZE + 1] may be accessed, but pivot has only LCMS_MAX_BIN_SIZE + 1 elements (unless the values of pivot were so that it is always assured that pivot[LCMS_MAX_BIN_SIZE] is always < sample (which it is iff it is always < 2^bit_depth - 1)). So reorder the checks. Reviewed-by: Nuo Mi <nuomi2021@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'doc/examples/avio_read_callback.c')
0 files changed, 0 insertions, 0 deletions