[libc] add standalone strtoint/float fuzzers
authorMichael Jones <michaelrj@google.com>
Thu, 9 Feb 2023 00:38:35 +0000 (16:38 -0800)
committerMichael Jones <michaelrj@google.com>
Fri, 10 Feb 2023 18:46:21 +0000 (10:46 -0800)
commit3a66446a9a0d866cc5766959c3ab010b01786dee
treeed8130414418f9df6a9cecdd2c5605a332984238
parent79a3803bb2ccdd852436cd1653017a1159a12157
[libc] add standalone strtoint/float fuzzers

Fuzzing the string to integer and float functions without relying on the
system libc allows for tests to be run in a wider variety of places.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D143616
libc/fuzzing/stdlib/CMakeLists.txt
libc/fuzzing/stdlib/strtofloat_fuzz.cpp [new file with mode: 0644]
libc/fuzzing/stdlib/strtointeger_fuzz.cpp [new file with mode: 0644]