git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d23727e
)
avcodec/h264_mvpred: Fix multiple runtime error: left shift of negative value
author
Michael Niedermayer
<michael@niedermayer.cc>
Fri, 3 Mar 2017 03:39:06 +0000
(
04:39
+0100)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Sat, 4 Mar 2017 16:48:04 +0000
(17:48 +0100)
Fixes: 710/clusterfuzz-testcase-
5091051431788544
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/h264_mvpred.h
patch
|
blob
|
history
diff --git
a/libavcodec/h264_mvpred.h
b/libavcodec/h264_mvpred.h
index
24f250d
..
339cf62
100644
(file)
--- a/
libavcodec/h264_mvpred.h
+++ b/
libavcodec/h264_mvpred.h
@@
-248,7
+248,7
@@
static av_always_inline void pred_8x16_motion(const H264Context *const h,
if (IS_INTERLACED(type)) { \
refn >>= 1; \
AV_COPY32(mvbuf[idx], mvn); \
- mvbuf[idx][1]
<<= 1;
\
+ mvbuf[idx][1]
*= 2;
\
mvn = mvbuf[idx]; \
} \
} \