[FFmpeg-devel] [avformat] Prevent undefined shift with wrap_bits > 63.

Dale Curtis dalecurtis at chromium.org
Fri Nov 17 23:46:39 EET 2017


Derp, actually, 2 << 63 doesn't fit in int64_t either, this check should be
< 63. Fixed.



On Fri, Nov 17, 2017 at 1:38 PM, Dale Curtis <dalecurtis at chromium.org>
wrote:

> 2 << (wrap_bits=64 - 1) does not fit in int64_t; apply the check
> used in other places that handle wrap bits to ensure the values
> are <= 63.
>
> Signed-off-by: Dale Curtis <dalecurtis at chromium.org>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wrap_bits_v2.patch
Type: text/x-patch
Size: 1535 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20171117/893c3003/attachment.bin>


More information about the ffmpeg-devel mailing list