To guarantee accuracy for all potential float values, this patch adds a
fuzzer to compare the results for float conversions from our printf
against MPFR's.
Details
Details
- Reviewers
sivachandra lntue - Commits
- rGe7866ea2125e: [libc] Add fuzzing for printf floats
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libc/fuzzing/stdio/printf_float_conv_fuzz.cpp | ||
---|---|---|
39 | Will using enums for the error codes be better here? |
libc/fuzzing/stdio/printf_float_conv_fuzz.cpp | ||
---|---|---|
1–2 | Nit: line format. |
Comment Actions
fix another fuzz-found bug. Given this I'm going to let the fuzzer run over the weekend before landing
Comment Actions
A bunch more bugfixes, but it seems to be stable now. The fuzzer has ran for ~12 hours with no failure.
Comment Actions
It would be helpful to actually leave a trail of descriptions of the mutually exclusive bugs that were identified. Also, prefer landing their fixes in separate patches (unless the fixes are trivial).
Comment Actions
split out the fixes into separate changes:
https://reviews.llvm.org/D157534
https://reviews.llvm.org/D157535
https://reviews.llvm.org/D157536
Nit: line format.