ffmpeg/libavcodec/vvc
Frank Plowman 7c5319e692
lavc/vvc: Add max parameter to kth_order_egk_decode
Prior to this patch, kth_order_egk_decode could read arbitrarily
large values which then overflowed and caused various issues.
Patch fixes this by making kth_order_egk_decode falliable,
requiring the caller to specify an upper bound and returning an
error if the read value would exceed that bound.

This patch resolves the same issue as
eb52251c0a, but I think this is the proper
fix as it also addresses issues with syntax elements besides
ff_vvc_num_signalled_palette_entries.

Signed-off-by: Frank Plowman <post@frankplowman.com>
2025-07-28 20:46:10 +01:00
..
cabac.c lavc/vvc: Add max parameter to kth_order_egk_decode 2025-07-28 20:46:10 +01:00
cabac.h lavc/vvc: Add max parameter to kth_order_egk_decode 2025-07-28 20:46:10 +01:00
ctu.c lavc/vvc: Add max parameter to kth_order_egk_decode 2025-07-28 20:46:10 +01:00
ctu.h avcodec/vvc/ctu: add palette support 2025-05-17 09:22:40 +08:00
data.c
data.h
dec.c avcodec/vvc/dec: Don't use GetBit-API when byte-aligned 2025-07-11 15:13:21 +02:00
dec.h avcodec/vvcdec: verify picture hash 2025-05-31 09:35:54 +08:00
dsp.c lavc/vvc: Use a bitfield to store MIP information 2024-12-07 17:37:45 +08:00
dsp.h avcodec/vvc/intra: make lmcs_scale_chroma inplace 2025-05-17 09:22:40 +08:00
dsp_template.c avcodec/vvc/intra: refact, predict jcbcr to tb->coeffs 2025-05-17 09:22:40 +08:00
filter.c lavc/vvc: Avoid UB in DB strength derivation for PLT CUs 2025-05-24 21:50:46 +08:00
filter.h avcodec/vvcdec: refact out deblock boundary strength stage 2024-10-16 20:28:09 +08:00
filter_template.c
inter.c
inter.h
inter_template.c avcodec/vvc: Don't use large array on stack 2024-10-01 11:30:22 +08:00
intra.c lavc/vvc: Fix condition for using default scaling factor 2025-06-27 06:06:14 +09:00
intra.h avcodec/vvc/intra: add ff_vvc_palette_derive_scale 2025-05-17 09:22:40 +08:00
intra_template.c avcodec/vvc/intra: make lmcs_scale_chroma inplace 2025-05-17 09:22:40 +08:00
intra_utils.c lavc/vvc: Remove floating point logic 2024-11-11 19:31:00 +08:00
itx_1d.c
itx_1d.h
Makefile avcodec/vvc: support decoding prefix and suffix nal units 2025-05-31 09:35:54 +08:00
mvs.c avcodec/vvc/ctu: add palette support 2025-05-17 09:22:40 +08:00
mvs.h avcodec/vvc: refact, save pf and ciip_flag in ff_vvc_set_intra_mvf 2025-05-17 09:22:40 +08:00
ps.c lavc/vvc: Fix divide-by-zero in LMCS param derivation 2025-05-25 09:35:21 +08:00
ps.h lavc/vvc_ps: Add alf raw syntax into VVCALF 2024-11-01 12:13:07 +08:00
refs.c avcodec/vvc/refs: remove early return 2025-06-28 15:16:45 +02:00
refs.h avcodec/vvc: Add support for output_corrupt/showall flags 2025-01-19 13:30:13 +08:00
sei.c avcodec/vvc: parse all SEI messages 2025-06-12 21:17:07 +08:00
sei.h avcodec/vvc/sei: add decode_frame_field_info 2025-05-31 09:35:54 +08:00
thread.c avcodec/vvc/ctu: add palette support 2025-05-17 09:22:40 +08:00
thread.h avcodec: make a local copy of executor 2024-10-04 21:58:42 +08:00