[all-commits] [llvm/llvm-project] 1287f5: [llvm-dwarfdump-fuzzer] fix out of bounds potentia...
DavidKorczynski via All-commits
all-commits at lists.llvm.org
Thu Dec 28 12:16:17 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1287f5aaf7b0f7630ff7910850e3154179654e71
https://github.com/llvm/llvm-project/commit/1287f5aaf7b0f7630ff7910850e3154179654e71
Author: DavidKorczynski <david at adalogics.com>
Date: 2023-12-28 (Thu, 28 Dec 2023)
Changed paths:
M llvm/tools/llvm-dwarfdump/fuzzer/llvm-dwarfdump-fuzzer.cpp
Log Message:
-----------
[llvm-dwarfdump-fuzzer] fix out of bounds potential (#76408)
The fuzzer relies on MemoryBuffer to hold fuzz data, and MemoryBuffer
guarantees that "In addition to basic access to the characters in the
file, this interface guarantees you can read one character past the end
of the file, and that this character will read as '\0'."
[Ref](https://llvm.org/doxygen/classllvm_1_1MemoryBuffer.html#details).
The current fuzzing set up does not support this, which causes potential
false positives. This PR fixes it.
Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=65114
Signed-off-by: David Korczynski <david at adalogics.com>
More information about the All-commits
mailing list