forked from OSchip/llvm-project
30bf96bfe7
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). llvm-svn: 230180 |
||
---|---|---|
.. | ||
invalid-abbrev.bc | ||
invalid-align.bc | ||
invalid-bad-abbrev-number.bc | ||
invalid-bitwidth.bc | ||
invalid-extractval-array-idx.bc | ||
invalid-extractval-struct-idx.bc | ||
invalid-extractval-too-many-idxs.bc | ||
invalid-insertval-array-idx.bc | ||
invalid-insertval-struct-idx.bc | ||
invalid-insertval-too-many-idxs.bc | ||
invalid-pr20485.bc | ||
invalid-type-table-forward-ref.bc | ||
invalid-unexpected-eof.bc |