[libc-commits] [PATCH] D150905: [libc] Use MPFR for strtofloat fuzzing

Michael Jones via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu May 18 13:34:28 PDT 2023


michaelrj created this revision.
michaelrj added reviewers: sivachandra, lntue.
Herald added subscribers: libc-commits, ecnelises, tschuett.
Herald added projects: libc-project, All.
michaelrj requested review of this revision.

The previous string to float tests didn't check correctness, but due to
the atof differential test proving unreliable the strtofloat fuzz test
has been changed to use MPFR for correctness checking. Some minor bugs
have been found and fixed as well.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D150905

Files:
  libc/cmake/modules/LLVMLibCTestRules.cmake
  libc/fuzzing/stdlib/CMakeLists.txt
  libc/fuzzing/stdlib/atof_differential_fuzz.cpp
  libc/fuzzing/stdlib/strtofloat_fuzz.cpp
  libc/src/__support/str_to_float.h
  libc/test/src/stdlib/strtod_test.cpp
  libc/test/src/stdlib/strtold_test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150905.523538.patch
Type: text/x-patch
Size: 11576 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230518/bebd5899/attachment-0001.bin>


More information about the libc-commits mailing list