[libc-commits] [PATCH] D149359: [libc] add exception to atof differential fuzz

Michael Jones via Phabricator via libc-commits libc-commits at lists.llvm.org
Fri Apr 28 11:03:29 PDT 2023


michaelrj added inline comments.


================
Comment at: libc/fuzzing/stdlib/atof_differential_fuzz.cpp:55
 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
   uint8_t *container = new uint8_t[size + 1];
   if (!container)
----------------
sivachandra wrote:
> If the skip check function can take the size argument, can we skip before making the copy.
not really, we need to add the null terminator to the string and to do that we need to copy it into something we can modify.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149359/new/

https://reviews.llvm.org/D149359



More information about the libc-commits mailing list