[all-commits] [llvm/llvm-project] 7aec38: [libc][NFC] add an atof test for a fuzz failure

michaelrj-google via All-commits all-commits at lists.llvm.org
Tue Mar 14 11:43:12 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7aec387dbec77282482aaaac692158569e923966
      https://github.com/llvm/llvm-project/commit/7aec387dbec77282482aaaac692158569e923966
  Author: Michael Jones <michaelrj at google.com>
  Date:   2023-03-14 (Tue, 14 Mar 2023)

  Changed paths:
    M libc/test/src/stdlib/strtod_test.cpp

  Log Message:
  -----------
  [libc][NFC] add an atof test for a fuzz failure

The differential fuzzer found that glibc and our libc disagree on the
result for "0x30000002222225p-1077", with ours being rounded up and
theirs rounded down. Ours is more correct for the nearest rounding mode,
so only a test is added.

Reviewed By: lntue, sivachandra

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




More information about the All-commits mailing list