[Lldb-commits] [lldb] [lldb] Limit formatter-section extractor range (PR #140139)

via lldb-commits lldb-commits at lists.llvm.org
Thu Feb 12 07:42:09 PST 2026


================
@@ -57,11 +57,15 @@ static void ForEachFormatterInModule(
       cursor.seek(cursor.tell() - 1);
       break;
     }
+    if (!cursor || cursor.tell() >= section_size)
+      break;
----------------
Nerixyz wrote:

> So could we just move the padding loop out? (and use `eof` checks, but that's optional).

Yes, I moved it out.

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


More information about the lldb-commits mailing list