llvm-6502/lib
Derek Schuff 493bc7e300 Fix StreamingMemoryObject to respect known object size.
The existing code for method StreamingMemoryObject.fetchToPos does not respect
the corresonding call to setKnownObjectSize(). As a result, it allows the
StreamingMemoryObject to read bytes past the object size.

This patch provides a test case, and code to fix the problem.

Patch by Karl Schimpf
Differential Revision: http://reviews.llvm.org/D8931

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237939 91177308-0d34-0410-b5e6-96231b3b80d8
2015-05-21 19:40:19 +00:00
..
Analysis Test commit. Fix typo in MemDerefPrinter.cpp comment. 2015-05-21 11:57:38 +00:00
AsmParser AsmParser: Require a terminating null character when creating memory buffer. 2015-05-20 20:41:27 +00:00
Bitcode [BitcodeReader] Error out if we read an invalid function argument type 2015-05-19 01:21:06 +00:00
CodeGen Move alignment from MCSectionData to MCSection. 2015-05-21 19:20:38 +00:00
DebugInfo [DWARF parser] Make DWARF parser more robust against missing compile/type units. 2015-05-19 21:54:32 +00:00
ExecutionEngine
Fuzzer [lib/Fuzzer] change the meaning of -timeout flag: now timeout is applied to every unit of work separately 2015-05-19 22:12:57 +00:00
IR [opaque pointer type] Pass explicit pointee type in another case of GEP constant folding 2015-05-21 00:06:38 +00:00
IRReader
LineEditor
Linker
LTO
MC Fetch alignment directly out of MCSection. NFC. 2015-05-21 19:36:43 +00:00
Object Move alignment from MCSectionData to MCSection. 2015-05-21 19:20:38 +00:00
Option
Passes
ProfileData
Support Fix StreamingMemoryObject to respect known object size. 2015-05-21 19:40:19 +00:00
TableGen [TableGen] Resolve complex def names inside multiclasses 2015-05-21 04:32:56 +00:00
Target Add support for VSX scalar single-precision arithmetic in the PPC target 2015-05-21 19:32:49 +00:00
Transforms [LoopDistribute] Remove a layer of pointer indirection. 2015-05-21 18:32:07 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile