[sanitizer] Fix typo in test
authorVitaly Buka <vitalybuka@google.com>
Tue, 12 Oct 2021 19:48:12 +0000 (12:48 -0700)
committerVitaly Buka <vitalybuka@google.com>
Tue, 12 Oct 2021 20:24:40 +0000 (13:24 -0700)
compiler-rt/lib/sanitizer_common/tests/sanitizer_stackdepot_test.cpp

index bc461d6..19d64fb 100644 (file)
@@ -95,7 +95,7 @@ TEST(SanitizerCommon, StackDepotPrintNoLock) {
     idx2id[i] = StackDepotPut(s);
   }
   StackDepotPrintAll();
-  for (u32 i = 1; i < n; ++i) {
+  for (u32 i = 0; i < n; ++i) {
     uptr array[] = {0x111, 0x222, i, 0x444, 0x777};
     StackTrace s(array, ARRAY_SIZE(array));
     CHECK_EQ(idx2id[i], StackDepotPut(s));