llvm-project/lldb/source/Expression
Vedant Kumar 5b71e75ed3 [IRMemoryMap] Fix the alignment adjustment in Malloc
This prevents Malloc from allocating the same chunk of memory twice, as
a byproduct of an alignment adjustment which gave the client access to
unallocated memory.

Prior to this patch, the newly-added test failed with:

$ lldb-test ir-memory-map ... ir-memory-map-overlap1.test
...
Command: malloc(size=64, alignment=32)
Malloc: address = 0x1000cd080
Command: malloc(size=64, alignment=8)
Malloc: address = 0x1000cd0b0
Malloc error: overlapping allocation detected, previous allocation at [0x1000cd080, 0x1000cd0c0)

Differential Revision: https://reviews.llvm.org/D47551

llvm-svn: 333697
2018-05-31 22:08:59 +00:00
..
CMakeLists.txt Break dependency from Core to ObjectFileJIT. 2018-05-23 23:56:09 +00:00
DWARFExpression.cpp Typo fixes. 2018-05-29 09:10:46 +00:00
DiagnosticManager.cpp Reflow paragraphs in comments. 2018-04-30 16:49:04 +00:00
Expression.cpp [lldb] Fix typos in file headers 2016-11-26 05:23:44 +00:00
ExpressionSourceCode.cpp Reflow paragraphs in comments. 2018-04-30 16:49:04 +00:00
ExpressionVariable.cpp Refactor GetNextPersistentVariableName into a non-virtual method 2018-04-30 23:59:17 +00:00
FunctionCaller.cpp Set m_struct_valid to initial value in ctor. 2018-05-31 20:01:15 +00:00
IRDynamicChecks.cpp Enable AUTOBRIEF in doxygen configuration. 2018-05-02 16:55:16 +00:00
IRExecutionUnit.cpp Break dependency from Core to ObjectFileJIT. 2018-05-23 23:56:09 +00:00
IRInterpreter.cpp Reflow paragraphs in comments. 2018-04-30 16:49:04 +00:00
IRMemoryMap.cpp [IRMemoryMap] Fix the alignment adjustment in Malloc 2018-05-31 22:08:59 +00:00
LLVMUserExpression.cpp Reflow paragraphs in comments. 2018-04-30 16:49:04 +00:00
Materializer.cpp Refactor GetNextPersistentVariableName into a non-virtual method 2018-04-30 23:59:17 +00:00
REPL.cpp Reflow paragraphs in comments. 2018-04-30 16:49:04 +00:00
UserExpression.cpp Reflow paragraphs in comments. 2018-04-30 16:49:04 +00:00
UtilityFunction.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00