[Lldb-commits] [PATCH] D128377: [lldb] Fix off-by-one error in the AppleObjCRuntimeV2 utility function
Jonas Devlieghere via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Jun 22 13:57:36 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd95c406c20ef: [lldb] Fix off-by-one error in the AppleObjCRuntimeV2 utility function (authored by JDevlieghere).
Herald added a project: LLDB.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D128377/new/
https://reviews.llvm.org/D128377
Files:
lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
Index: lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
===================================================================
--- lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
+++ lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
@@ -199,7 +199,7 @@
DEBUG_PRINTF ("count = %u\n", count);
uint32_t idx = 0;
- for (uint32_t i=0; i<=count; ++i)
+ for (uint32_t i=0; i<count; ++i)
{
if (idx < max_class_infos)
{
@@ -273,7 +273,7 @@
DEBUG_PRINTF ("count = %u\n", count);
uint32_t idx = 0;
- for (uint32_t i=0; i<=count; ++i)
+ for (uint32_t i=0; i<count; ++i)
{
if (idx < max_class_infos)
{
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128377.439151.patch
Type: text/x-patch
Size: 764 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220622/9781ae56/attachment.bin>
More information about the lldb-commits
mailing list