[all-commits] [llvm/llvm-project] 8a47ad: [libc] Add simple long double to printf float fuzz...

michaelrj-google via All-commits all-commits at lists.llvm.org
Mon Oct 16 13:32:52 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8a47ad4b67edfe0f1e5a84742cbbd6fee975a1dc
      https://github.com/llvm/llvm-project/commit/8a47ad4b67edfe0f1e5a84742cbbd6fee975a1dc
  Author: michaelrj-google <71531609+michaelrj-google at users.noreply.github.com>
  Date:   2023-10-16 (Mon, 16 Oct 2023)

  Changed paths:
    M libc/fuzzing/stdio/printf_float_conv_fuzz.cpp
    M libc/src/stdio/printf_core/float_hex_converter.h
    M libc/test/src/stdio/sprintf_test.cpp

  Log Message:
  -----------
  [libc] Add simple long double to printf float fuzz (#68449)

Recent testing has uncovered some hard-to-find bugs in printf's long
double support. This patch adds an extra long double path to the fuzzer
with minimal extra effort. While a more thorough long double fuzzer
would be useful, it would need to handle the non-standard cases of 80
bit long doubles such as unnormal and pseudo-denormal numbers. For that
reason, a standalone long double fuzzer is left for future development.




More information about the All-commits mailing list