OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8f6912
)
pmpdec: fix integer overflow
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 24 Feb 2013 21:53:58 +0000
(22:53 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 25 Feb 2013 17:36:21 +0000
(18:36 +0100)
Its unlikely this affects any valid files.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/pmpdec.c
patch
|
blob
|
history
diff --git
a/libavformat/pmpdec.c
b/libavformat/pmpdec.c
index
06b2271
..
3b8c5f7
100644
(file)
--- a/
libavformat/pmpdec.c
+++ b/
libavformat/pmpdec.c
@@
-93,7
+93,7
@@
static int pmp_header(AVFormatContext *s)
avio_skip(pb, 10);
srate = avio_rl32(pb);
channels = avio_rl32(pb) + 1;
- pos = avio_tell(pb) + 4*index_cnt;
+ pos = avio_tell(pb) + 4
LL
*index_cnt;
for (i = 0; i < index_cnt; i++) {
uint32_t size = avio_rl32(pb);
int flags = size & 1 ? AVINDEX_KEYFRAME : 0;