llvm-6502/test/Bitcode/Inputs
JF Bastien 8c253f7e88 Use common parse routine to read alignment values from bitcode
While fuzzing LLVM bitcode files, I discovered that (1) the bitcode reader doesn't check that alignments are no larger than 2**29; (2) downstream code doesn't check the range; and (3) for values out of range, corresponding large memory requests (based on alignment size) will fail. This code fixes the bitcode reader to check for valid alignments, fixing this problem.

This CL fixes alignment value on global variables, functions, and instructions: alloca, load, load atomic, store, store atomic.

Patch by Karl Schimpf (kschimpf@google.com).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230180 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-22 19:32:03 +00:00
..
invalid-abbrev.bc
invalid-align.bc Use common parse routine to read alignment values from bitcode 2015-02-22 19:32:03 +00:00
invalid-bad-abbrev-number.bc
invalid-bitwidth.bc Check bit widths before trying to get a type. 2015-01-30 18:13:50 +00:00
invalid-extractval-array-idx.bc [Bitcode reader] Fix a few assertions when reading invalid files 2015-02-16 00:03:11 +00:00
invalid-extractval-struct-idx.bc [Bitcode reader] Fix a few assertions when reading invalid files 2015-02-16 00:03:11 +00:00
invalid-extractval-too-many-idxs.bc [Bitcode reader] Fix a few assertions when reading invalid files 2015-02-16 00:03:11 +00:00
invalid-insertval-array-idx.bc [Bitcode reader] Fix a few assertions when reading invalid files 2015-02-16 00:03:11 +00:00
invalid-insertval-struct-idx.bc [Bitcode reader] Fix a few assertions when reading invalid files 2015-02-16 00:03:11 +00:00
invalid-insertval-too-many-idxs.bc [Bitcode reader] Fix a few assertions when reading invalid files 2015-02-16 00:03:11 +00:00
invalid-pr20485.bc
invalid-type-table-forward-ref.bc [bitcode reader] Fix an assert on invalid type tables 2015-01-30 10:57:58 +00:00
invalid-unexpected-eof.bc