[compiler-rt] NFC: Fix trivial typo
Reviewed By: xgupta
Differential Revision: https://reviews.llvm.org/D77457
GitOrigin-RevId: a1e7e401d2af002af26e1512a31e09eb2d0cf1dc
diff --git a/FuzzerDataFlowTrace.cpp b/FuzzerDataFlowTrace.cpp
index 24e77fe..2f9a4d2 100644
--- a/FuzzerDataFlowTrace.cpp
+++ b/FuzzerDataFlowTrace.cpp
@@ -37,7 +37,7 @@
// Coverage lines have this form:
// CN X Y Z T
// where N is the number of the function, T is the total number of instrumented
-// BBs, and X,Y,Z, if present, are the indecies of covered BB.
+// BBs, and X,Y,Z, if present, are the indices of covered BB.
// BB #0, which is the entry block, is not explicitly listed.
bool BlockCoverage::AppendCoverage(std::istream &IN) {
std::string L;
diff --git a/FuzzerFork.cpp b/FuzzerFork.cpp
index 2cc4f51..f7a17fd 100644
--- a/FuzzerFork.cpp
+++ b/FuzzerFork.cpp
@@ -358,7 +358,7 @@
Env.RunOneMergeJob(Job.get());
- // Continue if our crash is one of the ignorred ones.
+ // Continue if our crash is one of the ignored ones.
if (Options.IgnoreTimeouts && ExitCode == Options.TimeoutExitCode)
Env.NumTimeouts++;
else if (Options.IgnoreOOMs && ExitCode == Options.OOMExitCode)
diff --git a/FuzzerMerge.cpp b/FuzzerMerge.cpp
index 405adae..4bae782 100644
--- a/FuzzerMerge.cpp
+++ b/FuzzerMerge.cpp
@@ -378,7 +378,7 @@
}
auto ExitCode = ExecuteCommand(Cmd);
if (!ExitCode) {
- VPrintf(V, "MERGE-OUTER: succesfull in %zd attempt(s)\n", Attempt);
+ VPrintf(V, "MERGE-OUTER: successful in %zd attempt(s)\n", Attempt);
break;
}
}
diff --git a/FuzzerTracePC.cpp b/FuzzerTracePC.cpp
index 301d0c0..53e3a69 100644
--- a/FuzzerTracePC.cpp
+++ b/FuzzerTracePC.cpp
@@ -398,7 +398,7 @@
}
// Finds min of (strlen(S1), strlen(S2)).
-// Needed bacause one of these strings may actually be non-zero terminated.
+// Needed because one of these strings may actually be non-zero terminated.
static size_t InternalStrnlen2(const char *S1, const char *S2) {
size_t Len = 0;
for (; S1[Len] && S2[Len]; Len++) {}