================
@@ -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
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to