Quoting Martin Storsjö (2024-09-24 12:13:37)
> While shifting "value" to left, we would iterate through all bits
> of an unsigned long long, while we only expect to count through
> "size * CHAR_BIT" bits; instead shift bits to the right and just
> count the trailing zeros.
> 
> This fixes fate with MSVC.
> ---
> Fixed the UB by shifting to the right instead of to the left.
> ---
>  compat/stdbit/stdbit.h | 11 +++++++----
>  1 file changed, 7 insertions(+), 4 deletions(-)

LGTM

-- 
Anton Khirnov
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to