[libc-commits] [PATCH] D140178: [libc] add fuzz target for strtointeger functions

Michael Jones via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu Dec 15 16:39:00 PST 2022


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 string to integer conversion functions are well suited to
differential fuzzing, and this patch adds a target to enable just that.
It also fixes a bug in the fuzzing comparison logic and changes atoi
slightly to match the behavior described in the C standard.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D140178

Files:
  libc/fuzzing/math/Compare.h
  libc/fuzzing/stdlib/CMakeLists.txt
  libc/fuzzing/stdlib/StringParserOutputDiff.h
  libc/fuzzing/stdlib/strtointeger_differential_fuzz.cpp
  libc/src/stdlib/atoi.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140178.483388.patch
Type: text/x-patch
Size: 6163 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20221216/6cdfc4a4/attachment-0001.bin>


More information about the libc-commits mailing list