freebsd-nq/contrib/libc++/include
Dimitry Andric 5ffea91ec5 Pull in r302362 from upstream libc++ trunk (by me):
Ensure showbase does not overflow do_put buffers

  Summary:
  In https://bugs.freebsd.org/207918, Daniel McRobb describes how using
  std::showbase with ostreams can cause truncation of unsigned long long
  when output format is octal.  In fact, this can even happen with
  unsigned int and unsigned long.

  To ensure this does not happen, add one additional character to the
  do_put buffers if std::showbase is on.  Also add a test case.

  Reviewers: EricWF, mclow.lists

  Reviewed By: EricWF

  Subscribers: cfe-commits, emaste

  Differential Revision: https://reviews.llvm.org/D32670

PR:		207918
MFC after:	3 days
2017-05-06 21:43:55 +00:00
..
experimental Merge libc++ release_40 branch r292009. 2017-01-14 22:17:12 +00:00
ext Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
__bit_reference Merge libc++ trunk r291476, update Makefile, ObsoleteFiles.inc and 2017-01-09 22:41:53 +00:00
__bsd_locale_defaults.h Update libc++ to release_39 branch r279689. 2016-08-30 18:27:31 +00:00
__bsd_locale_fallbacks.h Update libc++ to release_39 branch r279689. 2016-08-30 18:27:31 +00:00
__config Merge llvm, clang, compiler-rt, libc++, lld and lldb release_40 branch 2017-01-29 21:56:47 +00:00
__debug Merge libc++ trunk r291476, update Makefile, ObsoleteFiles.inc and 2017-01-09 22:41:53 +00:00
__functional_03 Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
__functional_base Merge libc++ trunk r291476, update Makefile, ObsoleteFiles.inc and 2017-01-09 22:41:53 +00:00
__functional_base_03 Update libc++ to 3.8.0. Excerpted list of fixes (with upstream revision 2016-05-26 18:52:49 +00:00
__hash_table Merge libc++ trunk r291476, update Makefile, ObsoleteFiles.inc and 2017-01-09 22:41:53 +00:00
__libcpp_version Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
__locale Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
__mutex_base Merge libc++ release_40 branch r292009. 2017-01-14 22:17:12 +00:00
__nullptr Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
__refstring Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
__split_buffer Update libc++ to 3.8.0. Excerpted list of fixes (with upstream revision 2016-05-26 18:52:49 +00:00
__sso_allocator Merge libc++ trunk r291476, update Makefile, ObsoleteFiles.inc and 2017-01-09 22:41:53 +00:00
__std_stream Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
__string Merge llvm, clang, compiler-rt, libc++, lld and lldb release_40 branch 2017-01-29 21:56:47 +00:00
__threading_support Merge llvm, clang, compiler-rt, libc++, lld and lldb release_40 branch 2017-01-29 21:56:47 +00:00
__tree Merge llvm, clang, compiler-rt, libc++, lld and lldb release_40 branch 2017-02-05 19:57:41 +00:00
__tuple Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
__undef_min_max Update libc++ to release_39 branch r279689. 2016-08-30 18:27:31 +00:00
algorithm Merge libc++ trunk r291476, update Makefile, ObsoleteFiles.inc and 2017-01-09 22:41:53 +00:00
any Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
array Merge libc++ release_40 branch r292732. 2017-01-22 18:06:21 +00:00
atomic Merge libc++ trunk r291476, update Makefile, ObsoleteFiles.inc and 2017-01-09 22:41:53 +00:00
bitset Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
cassert
ccomplex
cctype Update libc++ to release_39 branch r279689. 2016-08-30 18:27:31 +00:00
cerrno Update libc++ to 3.8.0. Excerpted list of fixes (with upstream revision 2016-05-26 18:52:49 +00:00
cfenv Update libc++ to 3.8.0. Excerpted list of fixes (with upstream revision 2016-05-26 18:52:49 +00:00
cfloat Update libc++ to 3.8.0. Excerpted list of fixes (with upstream revision 2016-05-26 18:52:49 +00:00
chrono Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
cinttypes Update libc++ to 3.8.0. Excerpted list of fixes (with upstream revision 2016-05-26 18:52:49 +00:00
ciso646
climits
clocale Update libc++ to 3.7.0 release. 2015-09-16 22:26:52 +00:00
cmath Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
codecvt Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
complex Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
complex.h Update libc++ to 3.8.0. Excerpted list of fixes (with upstream revision 2016-05-26 18:52:49 +00:00
condition_variable Update libc++ to 3.8.0. Excerpted list of fixes (with upstream revision 2016-05-26 18:52:49 +00:00
csetjmp Update libc++ to 3.8.0. Excerpted list of fixes (with upstream revision 2016-05-26 18:52:49 +00:00
csignal
cstdarg
cstdbool
cstddef Update libc++ to 3.8.0. Excerpted list of fixes (with upstream revision 2016-05-26 18:52:49 +00:00
cstdint
cstdio Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
cstdlib Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
cstring Update libc++ to release_39 branch r279689. 2016-08-30 18:27:31 +00:00
ctgmath
ctime Update libc++ to 3.7.0 release. 2015-09-16 22:26:52 +00:00
ctype.h Update libc++ to 3.8.0. Excerpted list of fixes (with upstream revision 2016-05-26 18:52:49 +00:00
cwchar Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
cwctype Update libc++ to 3.8.0. Excerpted list of fixes (with upstream revision 2016-05-26 18:52:49 +00:00
deque Merge llvm, clang, compiler-rt, libc++, lld and lldb release_40 branch 2017-01-29 21:56:47 +00:00
errno.h Update libc++ to 3.8.0. Excerpted list of fixes (with upstream revision 2016-05-26 18:52:49 +00:00
exception Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
float.h Update libc++ to 3.8.0. Excerpted list of fixes (with upstream revision 2016-05-26 18:52:49 +00:00
forward_list Merge llvm, clang, compiler-rt, libc++, lld and lldb release_40 branch 2017-01-29 21:56:47 +00:00
fstream Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
functional Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
future Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
initializer_list Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
inttypes.h Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
iomanip Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
ios Merge libc++ release_40 branch r292009. 2017-01-14 22:17:12 +00:00
iosfwd Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
iostream Update libc++ to 3.7.0 release. 2015-09-16 22:26:52 +00:00
istream Merge libc++ trunk r291476, update Makefile, ObsoleteFiles.inc and 2017-01-09 22:41:53 +00:00
iterator Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
limits Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
limits.h Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
list Merge llvm, clang, compiler-rt, libc++, lld and lldb release_40 branch 2017-01-29 21:56:47 +00:00
locale Pull in r302362 from upstream libc++ trunk (by me): 2017-05-06 21:43:55 +00:00
locale.h Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
map Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
math.h Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
memory Merge libc++ release_40 branch r292009. 2017-01-14 22:17:12 +00:00
module.modulemap Merge libc++ trunk r291476, update Makefile, ObsoleteFiles.inc and 2017-01-09 22:41:53 +00:00
mutex Merge llvm, clang, compiler-rt, libc++, lld and lldb release_40 branch 2017-02-01 21:57:07 +00:00
new Merge libc++ release_40 branch r292732. 2017-01-22 18:06:21 +00:00
numeric Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
optional Merge llvm, clang, compiler-rt, libc++, lld and lldb release_40 branch 2017-02-11 13:58:05 +00:00
ostream Merge libc++ trunk r291476, update Makefile, ObsoleteFiles.inc and 2017-01-09 22:41:53 +00:00
queue Merge llvm, clang, compiler-rt, libc++, lld and lldb release_40 branch 2017-01-29 21:56:47 +00:00
random Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
ratio Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
regex Merge libc++ trunk r291476, update Makefile, ObsoleteFiles.inc and 2017-01-09 22:41:53 +00:00
scoped_allocator Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
set Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
setjmp.h Update libc++ to 3.8.0. Excerpted list of fixes (with upstream revision 2016-05-26 18:52:49 +00:00
shared_mutex Update libc++ to release_39 branch r279689. 2016-08-30 18:27:31 +00:00
sstream Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
stack Merge llvm, clang, compiler-rt, libc++, lld and lldb release_40 branch 2017-01-29 21:56:47 +00:00
stdbool.h Update libc++ to release_39 branch r279689. 2016-08-30 18:27:31 +00:00
stddef.h Update libc++ to 3.8.0. Excerpted list of fixes (with upstream revision 2016-05-26 18:52:49 +00:00
stdexcept Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
stdint.h Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
stdio.h Update libc++ to 3.8.0. Excerpted list of fixes (with upstream revision 2016-05-26 18:52:49 +00:00
stdlib.h Update libc++ to 3.8.0. Excerpted list of fixes (with upstream revision 2016-05-26 18:52:49 +00:00
streambuf Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
string Pull in r292830 from upstream libc++ trunk (by Eric Fiselier): 2017-01-23 22:10:57 +00:00
string_view Merge libc++ trunk r291476, update Makefile, ObsoleteFiles.inc and 2017-01-09 22:41:53 +00:00
string.h Update libc++ to release_39 branch r279689. 2016-08-30 18:27:31 +00:00
strstream Merge libc++ trunk r180598. Contains several minor cleanups and bug 2013-04-27 22:47:52 +00:00
system_error Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
tgmath.h
thread Merge libc++ trunk r291476, update Makefile, ObsoleteFiles.inc and 2017-01-09 22:41:53 +00:00
tuple Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
type_traits Merge libc++ trunk r291476, update Makefile, ObsoleteFiles.inc and 2017-01-09 22:41:53 +00:00
typeindex Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
typeinfo Merge libc++ release_40 branch r292732. 2017-01-22 18:06:21 +00:00
unordered_map Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
unordered_set Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
utility Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
valarray Merge libc++ trunk r291476, update Makefile, ObsoleteFiles.inc and 2017-01-09 22:41:53 +00:00
variant Merge llvm, clang, compiler-rt, libc++, lld and lldb release_40 branch 2017-02-11 13:58:05 +00:00
vector Merge llvm, clang, compiler-rt, libc++, lld and lldb release_40 branch 2017-01-29 21:56:47 +00:00
wchar.h Update libc++ to release_39 branch r279689. 2016-08-30 18:27:31 +00:00
wctype.h Update libc++ to 3.8.0. Excerpted list of fixes (with upstream revision 2016-05-26 18:52:49 +00:00