[all-commits] [llvm/llvm-project] 2501e8: [lldb/Scalar] Fix undefined behavior

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Tue Jun 30 12:41:59 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2501e86acda2905e50012f7e9fc1942517c1237d
      https://github.com/llvm/llvm-project/commit/2501e86acda2905e50012f7e9fc1942517c1237d
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2020-06-30 (Tue, 30 Jun 2020)

  Changed paths:
    M lldb/source/Utility/Scalar.cpp

  Log Message:
  -----------
  [lldb/Scalar] Fix undefined behavior

Fix UBSan error detected in TestDataFormatterObjCCF.py and
TestDataFormatterObjCNSDate.py:

Scalar.cpp:698:27: runtime error: -4.96303e+08 is outside the range of
representable values of type 'unsigned long long'.




More information about the All-commits mailing list