aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/rangecoder.h
diff options
context:
space:
mode:
authorDale Curtis <dalecurtis@chromium.org>2024-02-02 20:49:44 +0000
committerMichael Niedermayer <michael@niedermayer.cc>2024-02-21 18:23:41 +0100
commit6ef32ea5748e9dcc2c8d1c076607b8d15650a5fe (patch)
tree030c57262736a6f7a43d4a0ec353cc29c8c2e657 /libavcodec/rangecoder.h
parenta3f69cdec73dfddb132a89a524e1977dddfe46d0 (diff)
downloadffmpeg-6ef32ea5748e9dcc2c8d1c076607b8d15650a5fe.tar.gz
Avoid OOM for invalid STCO / CO64 constructions.
The `entries` value is read directly from the stream and used to allocate memory. This change clamps `entries` to however many are possible in the remaining atom or file size (whichever is smallest). Fixes https://crbug.com/1429357 Signed-off-by: Dale Curtis <dalecurtis@chromium.org> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/rangecoder.h')
0 files changed, 0 insertions, 0 deletions