HomePhabricator

[libunwind] Fix evaluating DWARF operation DW_OP_pick

Authored by steven_wu on Dec 18 2019, 12:22 PM.

Description

[libunwind] Fix evaluating DWARF operation DW_OP_pick

reg is unsigned type and used here for getting array element from the end by
negating it. negation of unsigned can result in large number and array access
with that index will result in segmentation fault.

Fixes: https://bugs.llvm.org/show_bug.cgi?id=43872

Patched by: kamlesh kumar

Differential Revision: https://reviews.llvm.org/D69893

Details

Committed
steven_wuDec 18 2019, 12:22 PM
Differential Revision
D69893: libunwind: Evaluating DWARF operation DW_OP_pick is broken
Parents
rG3f9668670012: Correct version check 9.9.26 -> 9.99.26
Branches
Unknown
Tags
Unknown