aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Path.cpp
diff options
context:
space:
mode:
authorVolodymyr Sapsai <vsapsai@apple.com>2017-11-22 18:52:36 +0000
committerVolodymyr Sapsai <vsapsai@apple.com>2017-11-22 18:52:36 +0000
commit2eb7f433a8d1fb1b0cd89db525195d2ff279497d (patch)
tree4e1782ea2fb629fc25444fbfb457284c80ec5990 /llvm/lib/Support/Path.cpp
parentb02295641d14a0d1746bd8b3cbedfc0c2649bb28 (diff)
downloadllvm-2eb7f433a8d1fb1b0cd89db525195d2ff279497d.zip
llvm-2eb7f433a8d1fb1b0cd89db525195d2ff279497d.tar.gz
llvm-2eb7f433a8d1fb1b0cd89db525195d2ff279497d.tar.bz2
[libcxx] Make std::basic_istream::getline 0-terminate input array in case of error.
It covers the cases when the sentry object returns false and when an exception was thrown. Corresponding standard paragraph is C++14 [istream.unformatted]p21: In any case, if n is greater than zero, it then stores a null character (using charT()) into the next successive location of the array. Patch by Reimar Döffinger. llvm-svn: 318862
Diffstat (limited to 'llvm/lib/Support/Path.cpp')
0 files changed, 0 insertions, 0 deletions