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:
4ec07e9
)
avcodec/bmp: Fix runtime error: negation of -2147483648 cannot be represented in...
author
Michael Niedermayer
<michael@niedermayer.cc>
Tue, 21 Feb 2017 15:22:47 +0000
(16:22 +0100)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Tue, 21 Feb 2017 18:05:04 +0000
(19:05 +0100)
There is code checking height and width later, leaving an invalid value invalid
is thus fine.
Fixes: 635/clusterfuzz-testcase-
6225161437052928
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/bmp.c
patch
|
blob
|
history
diff --git
a/libavcodec/bmp.c
b/libavcodec/bmp.c
index
fa1d6a5
..
d462385
100644
(file)
--- a/
libavcodec/bmp.c
+++ b/
libavcodec/bmp.c
@@
-133,7
+133,7
@@
static int bmp_decode_frame(AVCodecContext *avctx,
}
avctx->width = width;
- avctx->height = height > 0 ? height : -height;
+ avctx->height = height > 0 ? height : -
(unsigned)
height;
avctx->pix_fmt = AV_PIX_FMT_NONE;