Fix buffer overflow.
This commit is contained in:
parent
333fd017dc
commit
f84742e218
@ -675,7 +675,7 @@ namespace cling {
|
||||
source_name.str()));
|
||||
char* MBStart = const_cast<char*>(MB->getBufferStart());
|
||||
memcpy(MBStart, input.data(), InputSize);
|
||||
memcpy(MBStart + InputSize, "\n", 2);
|
||||
MBStart[InputSize] = '\n';
|
||||
|
||||
SourceManager& SM = getCI()->getSourceManager();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user