[all-commits] [llvm/llvm-project] 2ff809: [libc] Set min precision for strtofloat fuzz
michaelrj-google via All-commits
all-commits at lists.llvm.org
Tue Jul 18 16:28:35 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2ff8094e328001b37eda8c71306c557b842955ae
https://github.com/llvm/llvm-project/commit/2ff8094e328001b37eda8c71306c557b842955ae
Author: Michael Jones <michaelrj at google.com>
Date: 2023-07-18 (Tue, 18 Jul 2023)
Changed paths:
M libc/fuzzing/stdlib/strtofloat_fuzz.cpp
Log Message:
-----------
[libc] Set min precision for strtofloat fuzz
MPFR has a minimum precision of 2, but the strtofloat fuzz sometimes
would request a precision of 1 for the case of the minimum subnormal.
This patch tells the fuzzer to ignore any case where the precision would
go below 2.
Reviewed By: lntue
Differential Revision: https://reviews.llvm.org/D155130
More information about the All-commits
mailing list