Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix buffer overflow.
  • Loading branch information
marsupial authored and Axel-Naumann committed Jun 14, 2017
commit 1bda5c6c2ec8945e860fcd071291d821c67874b3
2 changes: 1 addition & 1 deletion interpreter/cling/lib/Interpreter/IncrementalParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down