[Lldb-commits] [lldb] [lldb] Check buffer allocation in DW_OP_piece empty-stack path (PR #207009)
Felipe de Azevedo Piovezan via lldb-commits
lldb-commits at lists.llvm.org
Tue Jul 28 01:40:54 PDT 2026
================
@@ -1085,7 +1085,10 @@ static llvm::Error Evaluate_DW_OP_piece(EvalContext &eval_ctx,
// In a multi-piece expression, this means that the current piece is
// not available. Fill with zeros for now by resizing the data and
// appending it
- curr_piece.ResizeData(piece_byte_size);
+ if (curr_piece.ResizeData(piece_byte_size) != piece_byte_size)
----------------
felipepiovezan wrote:
Should we also try to guard against values that are obviously too big? Not sure what the current "state of art" is for sanitizing dwarf input
https://github.com/llvm/llvm-project/pull/207009
More information about the lldb-commits
mailing list