projects
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mov: Fix negative size calculation in mov_read_default().
[ffmpeg.git]
/
libavformat
/
mov.c
diff --git
a/libavformat/mov.c
b/libavformat/mov.c
index
f2a66b8
..
a157d60
100644
(file)
--- a/
libavformat/mov.c
+++ b/
libavformat/mov.c
@@
-3471,7
+3471,7
@@
static int mov_read_default(MOVContext *c, AVIOContext *pb, MOVAtom atom)
}
}
total_size += 8;
- if (a.size == 1) { /* 64 bit extended size */
+ if (a.size == 1
&& total_size + 8 <= atom.size
) { /* 64 bit extended size */
a.size = avio_rb64(pb) - 8;
total_size += 8;
}