diff options
author | Volodymyr Sapsai <vsapsai@apple.com> | 2017-11-22 18:52:36 +0000 |
---|---|---|
committer | Volodymyr Sapsai <vsapsai@apple.com> | 2017-11-22 18:52:36 +0000 |
commit | 2eb7f433a8d1fb1b0cd89db525195d2ff279497d (patch) | |
tree | 4e1782ea2fb629fc25444fbfb457284c80ec5990 /llvm/lib/Support/Path.cpp | |
parent | b02295641d14a0d1746bd8b3cbedfc0c2649bb28 (diff) | |
download | llvm-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