[all-commits] [llvm/llvm-project] 5e9b16: [lldb] Fix unaligned load in DataExtractor

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Tue Jul 7 10:14:01 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5e9b16b67f5b9543e8d22b5b0f22cc0980c310bd
      https://github.com/llvm/llvm-project/commit/5e9b16b67f5b9543e8d22b5b0f22cc0980c310bd
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2020-07-07 (Tue, 07 Jul 2020)

  Changed paths:
    M lldb/include/lldb/Utility/DataExtractor.h
    M lldb/source/Utility/DataExtractor.cpp
    M lldb/unittests/Utility/DataExtractorTest.cpp

  Log Message:
  -----------
  [lldb] Fix unaligned load in DataExtractor

Somehow UBSan would only report the unaligned load in TestLinuxCore.py
when running the tests with reproducers. This patch fixes the issue by
using a memcpy in the GetDouble and the GetFloat method.

Differential revision: https://reviews.llvm.org/D83256




More information about the All-commits mailing list