]> git.ipfire.org Git - thirdparty/glibc.git/commit
stdio: Remove UB on printf_fp
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 25 Apr 2025 21:06:33 +0000 (18:06 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 28 Apr 2025 12:51:59 +0000 (09:51 -0300)
commit2be836fe44010d92ffffb73cd060045bb10305e4
tree123fe2ad697684dd2b8a1d07f166ec76dca533ae
parent77930e0447e0b37a129db0e13c6c6f5e60a3019e
stdio: Remove UB on printf_fp

The __printf_fp_buffer_1 issues count_leading_zeros with 0 argument,
which might leads to call __builtin_ctz depending of the ABI.
Replace with stdbit.h function instead.

Checked on x86_64-linux-gnu and i686-linux-gnu.
Reviewed-by: Paul Eggert <eggert@cs.ucla.edu>
stdio-common/printf_fp.c