summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectTarget.cpp
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-01-10 10:23:19 +0000
committerPavel Labath <pavel@labath.sk>2019-01-10 10:23:19 +0000
commit2886e4a08197b458f29d162d428fbf081b698464 (patch)
tree3a56c24f706bfed9fb7684ea7c607e123d979231 /lldb/source/Commands/CommandObjectTarget.cpp
parentb7871405fa91a752ca65df572d2d0a435a9993e1 (diff)
downloadbcm5719-llvm-2886e4a08197b458f29d162d428fbf081b698464.tar.gz
bcm5719-llvm-2886e4a08197b458f29d162d428fbf081b698464.zip
PECOFF: Fix section name computation
If a section name is exactly 8 bytes long (or has been truncated to 8 bytes), it will not contain the terminating nul character. This means reading the name as a c string will pick up random data following the name field (which happens to be the section vm size). This fixes the name computation to avoid out-of-bounds access and adds a test. Reviewers: zturner, stella.stamenova Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D56124 llvm-svn: 350809
Diffstat (limited to 'lldb/source/Commands/CommandObjectTarget.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud