1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-18 03:19:31 +02:00
FFmpeg/libavcodec/vvc
Andreas Rheinhardt 1eafbc27e2 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>
2024-02-21 01:04:28 +01:00
..
Makefile
vvc_cabac.c
vvc_cabac.h
vvc_ctu.c
vvc_ctu.h
vvc_data.c
vvc_data.h
vvc_filter_template.c
vvc_filter.c
vvc_filter.h
vvc_inter_template.c
vvc_inter.c
vvc_inter.h
vvc_intra_template.c
vvc_intra.c
vvc_intra.h
vvc_itx_1d.c
vvc_itx_1d.h
vvc_mvs.c
vvc_mvs.h
vvc_ps.c avcodec/vvc/vvc_ps: Check before access 2024-02-21 01:04:28 +01:00
vvc_ps.h
vvc_refs.c
vvc_refs.h
vvc_thread.c
vvc_thread.h
vvcdec.c
vvcdec.h
vvcdsp_template.c
vvcdsp.c
vvcdsp.h