[Lldb-commits] [lldb] [lldb] Fix index boundaries check, Change wrong int literal (PR #117226)

via lldb-commits lldb-commits at lists.llvm.org
Thu Nov 21 13:48:46 PST 2024


================
@@ -3278,7 +3278,7 @@ bool AppleObjCRuntimeV2::NonPointerISACache::EvaluateNonPointerISA(
       }
 
       // If the index is still out of range then this isn't a pointer.
-      if (index > m_indexed_isa_cache.size())
+      if (index >= m_indexed_isa_cache.size())
----------------
ChuvakHome wrote:

That sounds correct. Let me think a bit about your words

https://github.com/llvm/llvm-project/pull/117226


More information about the lldb-commits mailing list