[FFmpeg-devel] [PATCH] avcodec/wavpack: Fix invalid shift

Michael Niedermayer michael at niedermayer.cc
Wed Jul 5 01:07:09 EEST 2017


On Tue, Jun 27, 2017 at 02:33:22PM +0200, Michael Niedermayer wrote:
> Fixes: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
> Fixes: 2377/clusterfuzz-testcase-minimized-6108505935183872
> 
> Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
> Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> ---
>  libavcodec/wavpack.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

applied

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Its not that you shouldnt use gotos but rather that you should write
readable code and code with gotos often but not always is less readable
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170705/64e9599c/attachment.sig>


More information about the ffmpeg-devel mailing list