[lldb] Fix UB in half2float and add some more tests.
authorRaphael Isemann <teemperor@gmail.com>
Wed, 19 May 2021 19:35:24 +0000 (21:35 +0200)
committerRaphael Isemann <teemperor@gmail.com>
Wed, 19 May 2021 19:37:10 +0000 (21:37 +0200)
commit4b074b49be206306330076b9fa40632ef1960823
tree38256de48b446afddc5f691d3be46e068101b754
parent50be48b0f3c884a87ddf19c7c51abcab035c1efb
[lldb] Fix UB in half2float and add some more tests.

The added DumpDataExtractorTest uncovered that this is lshifting a negative
integer which upsets ubsan and breaks the sanitizer bot. This patch just
changes the variable we shift to be unsigned and adds a bunch of tests to make
sure this function does what it promises.
lldb/source/Core/DumpDataExtractor.cpp
lldb/unittests/Core/DumpDataExtractorTest.cpp