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:
e813df4
)
avcodec/mlpdec: Fix runtime error: left shift of negative value -22
author
Michael Niedermayer
<michael@niedermayer.cc>
Sat, 6 May 2017 10:05:17 +0000
(12:05 +0200)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Sat, 6 May 2017 10:08:14 +0000
(12:08 +0200)
Fixes: 1355/clusterfuzz-testcase-minimized-
6662205472768000
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mlpdec.c
patch
|
blob
|
history
diff --git
a/libavcodec/mlpdec.c
b/libavcodec/mlpdec.c
index
c93b058
..
7cad5d1
100644
(file)
--- a/
libavcodec/mlpdec.c
+++ b/
libavcodec/mlpdec.c
@@
-264,7
+264,7
@@
static inline int read_huff_channels(MLPDecodeContext *m, GetBitContext *gbp,
result = (result << lsb_bits) + get_bits(gbp, lsb_bits);
result += cp->sign_huff_offset;
- result
<<=
quant_step_size;
+ result
*= 1 <<
quant_step_size;
m->sample_buffer[pos + s->blockpos][channel] = result;
}