[all-commits] [llvm/llvm-project] 9e7b73: [libFuzzer] Update InputInfo.TimeOfUnit when repla...

PZ Read via All-commits all-commits at lists.llvm.org
Wed Oct 20 06:53:29 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9e7b7303f1d3556756d7c4db8fa02969c8f11c58
      https://github.com/llvm/llvm-project/commit/9e7b7303f1d3556756d7c4db8fa02969c8f11c58
  Author: PZ Read <netfirewall at gmail.com>
  Date:   2021-10-20 (Wed, 20 Oct 2021)

  Changed paths:
    M compiler-rt/lib/fuzzer/FuzzerCorpus.h
    M compiler-rt/lib/fuzzer/FuzzerLoop.cpp
    M compiler-rt/lib/fuzzer/tests/FuzzerUnittest.cpp

  Log Message:
  -----------
  [libFuzzer] Update InputInfo.TimeOfUnit when replacing it in the corpus.

Previously, when the fuzzing loop replaced an input in the corpus, it didn't update the execution time of the input. Therefore, some schedulers (e.g. Entropic) would adjust weights based on the incorrect execution time.

This patch updates the execution time of the input when replacing it.

Reviewed By: morehouse

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




More information about the All-commits mailing list