[compiler-rt] [compiler-rt] Fix typo in FuzzedDataProvider.h (PR #68083)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 3 02:51:48 PDT 2023
https://github.com/fanquake created https://github.com/llvm/llvm-project/pull/68083
None
>From 78b46f05d09a8f274cdc3fc9df1ddbc02a893a8c Mon Sep 17 00:00:00 2001
From: fanquake <fanquake at gmail.com>
Date: Tue, 3 Oct 2023 10:50:33 +0100
Subject: [PATCH] [compiler-rt] Fix typo in FuzzedDataProvider.h
---
compiler-rt/include/fuzzer/FuzzedDataProvider.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/compiler-rt/include/fuzzer/FuzzedDataProvider.h b/compiler-rt/include/fuzzer/FuzzedDataProvider.h
index 8a8214bd99fef3c..5903ed837917ca9 100644
--- a/compiler-rt/include/fuzzer/FuzzedDataProvider.h
+++ b/compiler-rt/include/fuzzer/FuzzedDataProvider.h
@@ -158,7 +158,7 @@ FuzzedDataProvider::ConsumeRandomLengthString(size_t max_length) {
// picking its contents.
std::string result;
- // Reserve the anticipated capaticity to prevent several reallocations.
+ // Reserve the anticipated capacity to prevent several reallocations.
result.reserve(std::min(max_length, remaining_bytes_));
for (size_t i = 0; i < max_length && remaining_bytes_ != 0; ++i) {
char next = ConvertUnsignedToSigned<char>(data_ptr_[0]);
More information about the llvm-commits
mailing list