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
..
2017-01-14 22:17:12 +00:00
2017-01-08 19:39:03 +00:00
2017-01-09 22:41:53 +00:00
2016-08-30 18:27:31 +00:00
2016-08-30 18:27:31 +00:00
2017-01-29 21:56:47 +00:00
2017-01-09 22:41:53 +00:00
2017-01-08 19:39:03 +00:00
2017-01-09 22:41:53 +00:00
2016-05-26 18:52:49 +00:00
2017-01-09 22:41:53 +00:00
2017-01-08 19:39:03 +00:00
2017-01-08 19:39:03 +00:00
2017-01-14 22:17:12 +00:00
2017-01-08 19:39:03 +00:00
2017-01-08 19:39:03 +00:00
2016-05-26 18:52:49 +00:00
2017-01-09 22:41:53 +00:00
2017-01-08 19:39:03 +00:00
2017-01-29 21:56:47 +00:00
2017-01-29 21:56:47 +00:00
2017-02-05 19:57:41 +00:00
2017-01-08 19:39:03 +00:00
2016-08-30 18:27:31 +00:00
2017-01-09 22:41:53 +00:00
2017-01-08 19:39:03 +00:00
2017-01-22 18:06:21 +00:00
2017-01-09 22:41:53 +00:00
2017-01-08 19:39:03 +00:00
2016-08-30 18:27:31 +00:00
2016-05-26 18:52:49 +00:00
2016-05-26 18:52:49 +00:00
2016-05-26 18:52:49 +00:00
2017-01-08 19:39:03 +00:00
2016-05-26 18:52:49 +00:00
2015-09-16 22:26:52 +00:00
2017-01-08 19:39:03 +00:00
2017-01-08 19:39:03 +00:00
2017-01-08 19:39:03 +00:00
2016-05-26 18:52:49 +00:00
2016-05-26 18:52:49 +00:00
2016-05-26 18:52:49 +00:00
2016-05-26 18:52:49 +00:00
2017-01-08 19:39:03 +00:00
2017-01-08 19:39:03 +00:00
2016-08-30 18:27:31 +00:00
2015-09-16 22:26:52 +00:00
2016-05-26 18:52:49 +00:00
2017-01-08 19:39:03 +00:00
2016-05-26 18:52:49 +00:00
2017-01-29 21:56:47 +00:00
2016-05-26 18:52:49 +00:00
2017-01-08 19:39:03 +00:00
2016-05-26 18:52:49 +00:00
2017-01-29 21:56:47 +00:00
2017-01-08 19:39:03 +00:00
2017-01-08 19:39:03 +00:00
2017-01-08 19:39:03 +00:00
2017-01-08 19:39:03 +00:00
2017-01-08 19:39:03 +00:00
2017-01-08 19:39:03 +00:00
2017-01-14 22:17:12 +00:00
2017-01-08 19:39:03 +00:00
2015-09-16 22:26:52 +00:00
2017-01-09 22:41:53 +00:00
2017-01-08 19:39:03 +00:00
2017-01-08 19:39:03 +00:00
2017-01-08 19:39:03 +00:00
2017-01-29 21:56:47 +00:00
2017-05-06 21:43:55 +00:00
2017-01-08 19:39:03 +00:00
2017-01-08 19:39:03 +00:00
2017-01-08 19:39:03 +00:00
2017-01-14 22:17:12 +00:00
2017-01-09 22:41:53 +00:00
2017-02-01 21:57:07 +00:00
2017-01-22 18:06:21 +00:00
2017-01-08 19:39:03 +00:00
2017-02-11 13:58:05 +00:00
2017-01-09 22:41:53 +00:00
2017-01-29 21:56:47 +00:00
2017-01-08 19:39:03 +00:00
2017-01-08 19:39:03 +00:00
2017-01-09 22:41:53 +00:00
2017-01-08 19:39:03 +00:00
2017-01-08 19:39:03 +00:00
2016-05-26 18:52:49 +00:00
2016-08-30 18:27:31 +00:00
2017-01-08 19:39:03 +00:00
2017-01-29 21:56:47 +00:00
2016-08-30 18:27:31 +00:00
2016-05-26 18:52:49 +00:00
2017-01-08 19:39:03 +00:00
2017-01-08 19:39:03 +00:00
2016-05-26 18:52:49 +00:00
2016-05-26 18:52:49 +00:00
2017-01-08 19:39:03 +00:00
2017-01-23 22:10:57 +00:00
2017-01-09 22:41:53 +00:00
2016-08-30 18:27:31 +00:00
2017-01-08 19:39:03 +00:00
2017-01-09 22:41:53 +00:00
2017-01-08 19:39:03 +00:00
2017-01-09 22:41:53 +00:00
2017-01-08 19:39:03 +00:00
2017-01-22 18:06:21 +00:00
2017-01-08 19:39:03 +00:00
2017-01-08 19:39:03 +00:00
2017-01-08 19:39:03 +00:00
2017-01-09 22:41:53 +00:00
2017-02-11 13:58:05 +00:00
2017-01-29 21:56:47 +00:00
2016-08-30 18:27:31 +00:00
2016-05-26 18:52:49 +00:00