summaryrefslogtreecommitdiffstats
path: root/clang/docs/LanguageExtensions.rst
diff options
context:
space:
mode:
authorDimitry Andric <dimitry@andric.com>2017-05-06 20:58:50 +0000
committerDimitry Andric <dimitry@andric.com>2017-05-06 20:58:50 +0000
commit52844c83d0630c748b434f26bcd8a43e48bca9d3 (patch)
treeb4d0556676f5bec30635d3aee364929d4d8e610d /clang/docs/LanguageExtensions.rst
parent33f7397cc0582f3a842cc4cba5fec605c3a09e48 (diff)
downloadbcm5719-llvm-52844c83d0630c748b434f26bcd8a43e48bca9d3.tar.gz
bcm5719-llvm-52844c83d0630c748b434f26bcd8a43e48bca9d3.zip
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 llvm-svn: 302362
Diffstat (limited to 'clang/docs/LanguageExtensions.rst')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud