Fix a buffer-size bug when the first DW_OP_piece is undefined
authorAdrian Prantl <aprantl@apple.com>
Thu, 16 Jan 2020 22:21:17 +0000 (14:21 -0800)
committerAdrian Prantl <aprantl@apple.com>
Fri, 17 Jan 2020 00:47:59 +0000 (16:47 -0800)
commitf55ab6f90b7317a6bb85303a6102702bdae1199e
tree2b5d4a775d0b41ea88c2af0e9b5cc414cf3f2371
parent7b0d58e339b271e3b1d9dc14b781b57fa0262e3a
Fix a buffer-size bug when the first DW_OP_piece is undefined

and document the shortcomings of LLDB's partially defined DW_OP_piece
handling.

This would manifest as "DW_OP_piece for offset foo but top of stack is
of size bar".

rdar://problem/46262998

Differential Revision: https://reviews.llvm.org/D72880
lldb/source/Expression/DWARFExpression.cpp
lldb/unittests/Expression/DWARFExpressionTest.cpp