aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/aasc.c
diff options
context:
space:
mode:
authorFrank Plowman <post@frankplowman.com>2024-04-09 07:55:11 +0000
committerNuo Mi <nuomi2021@gmail.com>2024-04-09 22:30:18 +0800
commitfcf74c5ebc520a53758eb410003fc8e814873053 (patch)
treefa2ec2696229883d106b0918057139c02d365b30 /libavcodec/aasc.c
parentf499503073804e55540cad13743849a791449a98 (diff)
downloadffmpeg-fcf74c5ebc520a53758eb410003fc8e814873053.tar.gz
lavc/vvc: Fix buffer overread in CABAC
The size variable here is taken as gospel for the bounds of the input buffer in later logic. Clamp it to ensure that the returned region does not extend past that allocated in the underlying GetBitContext, even in the case entry point offsets are signalled in the bitstream. Also assert this for good measure. Signed-off-by: Frank Plowman <post@frankplowman.com>
Diffstat (limited to 'libavcodec/aasc.c')
0 files changed, 0 insertions, 0 deletions