llvm-6502/lib/Bitcode/Reader
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
..
BitcodeReader.cpp Use common parse routine to read alignment values from bitcode 2015-02-22 19:32:03 +00:00
BitcodeReader.h Use common parse routine to read alignment values from bitcode 2015-02-22 19:32:03 +00:00
BitReader.cpp Propagate a better error message to the C api. 2015-02-03 01:53:03 +00:00
BitstreamReader.cpp Clean up some inappropriate choices of type in the bitcode reader. None of 2015-02-13 21:05:11 +00:00
CMakeLists.txt Use ADDITIONAL_HEADER_DIRS in all LLVM CMake projects. 2015-02-11 03:28:02 +00:00
LLVMBuild.txt LLVMBuild: Remove trailing newline, which irked me. 2011-12-12 19:48:00 +00:00
Makefile