summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/frame/main.c
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-06-24 09:11:24 +0000
committerPavel Labath <pavel@labath.sk>2019-06-24 09:11:24 +0000
commitbb6d0b8e7b0d815710a71b8012438a586e986450 (patch)
treede7159de045cb1aa0028959c42e410061d7a2fed /lldb/packages/Python/lldbsuite/test/python_api/frame/main.c
parenta94c18fc20068b77602c7ef01405e81f1664147f (diff)
downloadbcm5719-llvm-bb6d0b8e7b0d815710a71b8012438a586e986450.tar.gz
bcm5719-llvm-bb6d0b8e7b0d815710a71b8012438a586e986450.zip
[Support] Fix error handling in DataExtractor::get[US]LEB128
Summary: These functions are documented as not modifying the offset argument if the extraction fails (just like other DataExtractor functions). However, while reviewing D63591 we discovered that this is not the case -- if the function reaches the end of the data buffer, it will just return the value parsed until that point and set offset to point to the end of the buffer. This fixes the functions to act as advertised, and adds a regression test. Reviewers: dblaikie, probinson, bkramer Subscribers: kristina, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D63645 llvm-svn: 364169
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/frame/main.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud