Message ID | 20170313194509.3553-1-michael@niedermayer.cc |
---|---|
State | Accepted |
Commit | 0728d9a281068add5898a8b51cd9c6f3b973ea31 |
Headers | show |
On Mon, Mar 13, 2017 at 08:45:07PM +0100, Michael Niedermayer wrote: > Fixes: 823/clusterfuzz-testcase-6727060074528768 > > Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg > Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> > --- > libavcodec/pictordec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) patchset applied [...]
diff --git a/libavcodec/pictordec.c b/libavcodec/pictordec.c index 2dbc040b5c..8b075bfd0c 100644 --- a/libavcodec/pictordec.c +++ b/libavcodec/pictordec.c @@ -62,7 +62,7 @@ static void picmemset(PicContext *s, AVFrame *frame, unsigned value, int run, { uint8_t *d; int shift = *plane * bits_per_plane; - int mask = ((1 << bits_per_plane) - 1) << shift; + unsigned mask = ((1 << bits_per_plane) - 1) << shift; value <<= shift; while (run > 0) {
Fixes: 823/clusterfuzz-testcase-6727060074528768 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libavcodec/pictordec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)