[all-commits] [llvm/llvm-project] a44ef0: [compiler-rt] FuzzedDataProvider: do not call memc...

Max Moroz via All-commits all-commits at lists.llvm.org
Wed Dec 4 14:21:05 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a44ef027ebca1598892ea9b104d6189aeb3bc2f0
      https://github.com/llvm/llvm-project/commit/a44ef027ebca1598892ea9b104d6189aeb3bc2f0
  Author: Max Moroz <mmoroz at chromium.org>
  Date:   2019-12-04 (Wed, 04 Dec 2019)

  Changed paths:
    M compiler-rt/include/fuzzer/FuzzedDataProvider.h

  Log Message:
  -----------
  [compiler-rt] FuzzedDataProvider: do not call memcpy on empty vector.

Summary:
Some versions of memcpy mark pointer arguments as __nonnull, that triggers UBSan
errors even when the length passed is 0.

Reviewers: manojgupta, metzman

Subscribers: dberris, #sanitizers, llvm-commits

Tags: #sanitizers, #llvm

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

[compiler-rt] FDP: assert that num_bytes_to_consume == 0 when size == 0.




More information about the All-commits mailing list