diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2022-09-21 18:23:30 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2022-10-09 22:15:48 +0200 |
commit | e55980d3bf3599cb940390220681d3186391a7f0 (patch) | |
tree | c96f9623fd7fc8745c539e6bb113fbe416de0045 /libavformat | |
parent | 045ed347fb6216386b04f5a7a0e9ab37761af29b (diff) | |
download | ffmpeg-e55980d3bf3599cb940390220681d3186391a7f0.tar.gz |
avformat/mxfdec: only probe max run in
Suggested-by: Tomas Härdin <tjoppen@acc.umu.se>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 1182bbb2c3226260ed672920251e3410bde8c6c9)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mxfdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index dbd34e3588..56680e258e 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -3578,7 +3578,7 @@ static int mxf_read_close(AVFormatContext *s) static int mxf_probe(AVProbeData *p) { const uint8_t *bufp = p->buf; - const uint8_t *end = p->buf + p->buf_size; + const uint8_t *end = p->buf + FFMIN(p->buf_size, RUN_IN_MAX + 1 + sizeof(mxf_header_partition_pack_key)); if (p->buf_size < sizeof(mxf_header_partition_pack_key)) return 0; |