[libc-commits] [PATCH] D157534: [libc] Fix printf %a padding issue
Siva Chandra via Phabricator via libc-commits
libc-commits at lists.llvm.org
Wed Aug 9 14:24:26 PDT 2023
sivachandra added inline comments.
================
Comment at: libc/test/src/stdio/sprintf_test.cpp:872
+ // The trailing zeroes were previously not counted when calculating the
+ // padding, which caused a high-precision number to get too much padding.
+ written = __llvm_libc::sprintf(buff, "%50.50a", 0x1.0p0);
----------------
This comment talking about what was previously happening, and that it was found via fuzzing doesn't help build the context. Instead, can you describe what exact expected behavior is being tested here?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157534/new/
https://reviews.llvm.org/D157534
More information about the libc-commits
mailing list