1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00
freebsd/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
__bsd_locale_fallbacks.h
__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
__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
__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
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
cerrno
cfenv
cfloat
chrono Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
cinttypes
ciso646
climits
clocale
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
condition_variable
csetjmp
csignal
cstdarg
cstdbool
cstddef
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
ctgmath
ctime
ctype.h
cwchar Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
cwctype
deque Merge llvm, clang, compiler-rt, libc++, lld and lldb release_40 branch 2017-01-29 21:56:47 +00:00
errno.h
exception Merge libc++ r291274, and update the library Makefile. 2017-01-08 19:39:03 +00:00
float.h
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
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
shared_mutex
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
stddef.h
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
stdlib.h
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
strstream
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
wctype.h