Skip to content

Commit

Permalink
Trying to fix a buffer overflow that broke buildbot sanitizer-x86_64-…
Browse files Browse the repository at this point in the history
…linux-fast/builds/13946.

llvm-svn: 273319
  • Loading branch information
Eric Liu committed Jun 21, 2016
1 parent 26c6bb1 commit 5a35e65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/Tooling/Core/Replacement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ calculateRangesAfterReplacements(const Replacements &Replaces,
for (const auto &R : MergedRanges)
FakeReplaces.insert(Replacement(Replaces.begin()->getFilePath(),
R.getOffset(), R.getLength(),
std::string(" ", R.getLength())));
std::string(R.getLength(), ' ')));
tooling::Replacements NewReplaces = mergeReplacements(FakeReplaces, Replaces);
return calculateChangedRanges(NewReplaces);
}
Expand Down

0 comments on commit 5a35e65

Please sign in to comment.