[Lldb-commits] [PATCH] D83256: [lldb] Assert on unaligned load in DataExtractor

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Jul 6 13:24:00 PDT 2020


JDevlieghere created this revision.
JDevlieghere added reviewers: labath, clayborg.

Somehow UBSan would only report the unaligned load in `TestLinuxCore.py` when running the tests with reproducers. This patch adds an assert for the `GetDouble` and `GetFloat` method, which triggers regardless of UBSan.


Repository:
  rLLDB LLDB

https://reviews.llvm.org/D83256

Files:
  lldb/include/lldb/Utility/DataExtractor.h
  lldb/source/Utility/DataExtractor.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83256.275819.patch
Type: text/x-patch
Size: 3421 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20200706/329faaad/attachment.bin>


More information about the lldb-commits mailing list