Go to file
Justin Bogner ae341c6e9b Bitcode: Error out instead of crashing on corrupt metadata
I hit a crash in the bitcode reader on some corrupt input where an
MDString had somehow been attached to an instruction instead of an
MDNode. This input is pretty bogus, but we shouldn't be crashing on bad
input here.

This change adds error handling in all of the places where we
currently have unchecked casts from Metadata to MDNode, which means
we'll error out instead of crashing for that sort of input.

Unfortunately, I don't have tests. Hitting this requires flipping bits
in the input bitcode, and committing corrupt binary files to catch
these cases is a bit too opaque and unmaintainable.

llvm-svn: 263742
2016-03-17 20:12:06 +00:00
clang Revert "For MS ABI, emit dllexport friend functions defined inline in class" 2016-03-17 20:06:58 +00:00
clang-tools-extra Fix Clang-tidy modernize-deprecated-headers warnings; other minor fixes. 2016-03-17 17:02:25 +00:00
compiler-rt Removing a non-intentional debug output that got committed in r263695. 2016-03-17 09:27:40 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc math: Fix ilogb(double) return type 2016-02-24 00:52:15 +00:00
libcxx Make std::addressof constexpr in C++17 (Clang only). 2016-03-17 03:30:56 +00:00
libcxxabi [libcxxabi] Disable cxa_thread_atexit_test if unavailable 2016-03-17 10:00:24 +00:00
libunwind [AArch64] Fix libunwind build when using GNU assembler 2016-02-11 21:22:57 +00:00
lld [COFF] Use coff_section::getAlignment 2016-03-17 16:58:08 +00:00
lldb Fix deadlock due to thread list locking in 'bt all' with obj-c 2016-03-17 18:52:41 +00:00
llgo [llgo] Roll gofrontend forward 2016-03-15 05:36:43 +00:00
llvm Bitcode: Error out instead of crashing on corrupt metadata 2016-03-17 20:12:06 +00:00
openmp [CMake] Fix Windows build problem for CMake versions < 3.3 2016-03-16 18:44:18 +00:00
polly ScopInfo: Do not generate dependences for i1 values used in affine branches 2016-03-16 23:33:54 +00:00