[all-commits] [llvm/llvm-project] 62e7bd: [libc] use vars in string to num fuzz targets

michaelrj-google via All-commits all-commits at lists.llvm.org
Mon Feb 27 13:21:49 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 62e7bdd22a95b92d04e61f93b6aea4d95a5030fd
      https://github.com/llvm/llvm-project/commit/62e7bdd22a95b92d04e61f93b6aea4d95a5030fd
  Author: Michael Jones <michaelrj at google.com>
  Date:   2023-02-27 (Mon, 27 Feb 2023)

  Changed paths:
    M libc/fuzzing/stdlib/strtofloat_fuzz.cpp
    M libc/fuzzing/stdlib/strtointeger_fuzz.cpp

  Log Message:
  -----------
  [libc] use vars in string to num fuzz targets

The string to integer and string to float standalone fuzz targets just
ran the functions and didn't do anything with the output. This was
intentional, since they are intended to be used with sanitizers to
detect buffer overflow bugs. Not using the variables was causing compile
warnings, so this patch adds trivial checks to use the variables.

Reviewed By: sivachandra, lntue

Differential Revision: https://reviews.llvm.org/D144208




More information about the All-commits mailing list