[FFmpeg-devel] [PATCH 10/10] avutil/common: Fix undefined shift

Michael Niedermayer michael at niedermayer.cc
Thu Sep 19 00:03:49 EEST 2019


On Wed, Sep 18, 2019 at 05:26:07AM +0200, Andreas Rheinhardt wrote:
> av_mod_uintp2_c uses a bitwise AND with (1 << p) - 1 to clear the high
> bits of an unsigned int. But this is undefined if p == 31, because 1 is
> an int and 2^31 is not representable in an int. So make 1 unsigned.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> ---
>  libavutil/common.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

will apply

thx

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

Never trust a computer, one day, it may think you are the virus. -- Compn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20190918/deb5642f/attachment.sig>


More information about the ffmpeg-devel mailing list