[scudo] Fix typo in multiple files (#171925)

NOKEYCHECK=True
GitOrigin-RevId: f36792b2a391a1f8c5c83ad0770304ed25e249ce
diff --git a/lib/scudo/standalone/primary64.h b/lib/scudo/standalone/primary64.h
index 4eccf80..a844d7d 100644
--- a/lib/scudo/standalone/primary64.h
+++ b/lib/scudo/standalone/primary64.h
@@ -1684,7 +1684,7 @@
 
       if (!HighDensity) {
         DCHECK_LE(BytesInBG, ReleaseThreshold);
-        // The following is the usage of a memroy group,
+        // The following is the usage of a memory group,
         //
         //     BytesInBG             ReleaseThreshold
         //  /             \                 v
diff --git a/lib/scudo/standalone/release.h b/lib/scudo/standalone/release.h
index 7a4912e..4171314 100644
--- a/lib/scudo/standalone/release.h
+++ b/lib/scudo/standalone/release.h
@@ -476,12 +476,12 @@
     if (FirstBlockInRange >= ToInRegion)
       return true;
 
-    // First block may not sit at the first pape in the range, move
+    // First block may not sit at the first page in the range, move
     // `FromInRegion` to the first block page.
     FromInRegion = roundDown(FirstBlockInRange, PageSize);
 
     // When The first block is not aligned to the range boundary, which means
-    // there is a block sitting acorss `From`, that looks like,
+    // there is a block sitting across `From`, that looks like,
     //
     //   From                                             To
     //     V                                               V
diff --git a/lib/scudo/standalone/tests/checksum_test.cpp b/lib/scudo/standalone/tests/checksum_test.cpp
index c5d5b73..eff523b 100644
--- a/lib/scudo/standalone/tests/checksum_test.cpp
+++ b/lib/scudo/standalone/tests/checksum_test.cpp
@@ -31,7 +31,7 @@
 typedef scudo::u16 (*ComputeChecksum)(scudo::u32, scudo::uptr *, scudo::uptr);
 
 // This verifies that flipping bits in the data being checksummed produces a
-// different checksum. We do not use random data to avoid flakyness.
+// different checksum. We do not use random data to avoid flakiness.
 template <ComputeChecksum F> static void verifyChecksumFunctionBitFlip() {
   scudo::uptr Array[sizeof(scudo::u64) / sizeof(scudo::uptr)];
   const scudo::uptr ArraySize = ARRAY_SIZE(Array);
diff --git a/lib/scudo/standalone/tests/wrappers_cpp_test.cpp b/lib/scudo/standalone/tests/wrappers_cpp_test.cpp
index c802ed2..5e56447 100644
--- a/lib/scudo/standalone/tests/wrappers_cpp_test.cpp
+++ b/lib/scudo/standalone/tests/wrappers_cpp_test.cpp
@@ -184,7 +184,7 @@
 }
 
 TEST_F(ScudoWrappersCppTest, ThreadedNew) {
-  // TODO: Investigate why libc sometimes crashes with tag missmatch in
+  // TODO: Investigate why libc sometimes crashes with tag mismatch in
   // __pthread_clockjoin_ex.
   std::unique_ptr<scudo::ScopedDisableMemoryTagChecks> NoTags;
   if (!SCUDO_ANDROID && scudo::archSupportsMemoryTagging() &&
@@ -207,7 +207,7 @@
 #if !SCUDO_FUCHSIA
 TEST_F(ScudoWrappersCppTest, AllocAfterFork) {
   // This test can fail flakily when ran as a part of large number of
-  // other tests if the maxmimum number of mappings allowed is low.
+  // other tests if the maximum number of mappings allowed is low.
   // We tried to reduce the number of iterations of the loops with
   // moderate success, so we will now skip this test under those
   // circumstances.
diff --git a/lib/scudo/standalone/trusty.h b/lib/scudo/standalone/trusty.h
index 50edd1c..4907e8d 100644
--- a/lib/scudo/standalone/trusty.h
+++ b/lib/scudo/standalone/trusty.h
@@ -14,7 +14,7 @@
 #if SCUDO_TRUSTY
 
 namespace scudo {
-// MapPlatformData is unused on Trusty, define it as a minimially sized
+// MapPlatformData is unused on Trusty, define it as a minimally sized
 // structure.
 struct MapPlatformData {};
 } // namespace scudo