[Lldb-commits] [lldb] [lldb][bytecode] Improve testing of bytecode section loading (PR #212568)
Dave Lee via lldb-commits
lldb-commits at lists.llvm.org
Fri Jul 31 18:21:14 PDT 2026
================
@@ -73,6 +73,13 @@ static void ForEachFormatterInModule(
uint64_t version = section.getULEB128(cursor);
uint64_t record_size = section.getULEB128(cursor);
+ if (cursor && record_size > section_size - cursor.tell()) {
----------------
kastiglione wrote:
A `cursor` in an error state is handled immediately after this `if` statement.
https://github.com/llvm/llvm-project/pull/212568
More information about the lldb-commits
mailing list