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) {
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) {
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits