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:
3d9cb58
)
avcodec/takdec: Fix runtime error: left shift of negative value -42
author
Michael Niedermayer
<michael@niedermayer.cc>
Tue, 16 May 2017 22:44:36 +0000
(
00:44
+0200)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Tue, 16 May 2017 22:46:00 +0000
(
00:46
+0200)
Fixes: 1635/clusterfuzz-testcase-minimized-
4992749856096256
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/takdec.c
patch
|
blob
|
history
diff --git
a/libavcodec/takdec.c
b/libavcodec/takdec.c
index
42939b4
..
31d7031
100644
(file)
--- a/
libavcodec/takdec.c
+++ b/
libavcodec/takdec.c
@@
-904,7
+904,7
@@
static int tak_decode_frame(AVCodecContext *avctx, void *data,
for (chan = 0; chan < avctx->channels; chan++) {
int32_t *samples = (int32_t *)frame->extended_data[chan];
for (i = 0; i < s->nb_samples; i++)
- samples[i]
<<=
8;
+ samples[i]
*= 1 <<
8;
}
break;
}