Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 06 May 2017 21:44:28 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-standards@FreeBSD.org
Subject:   [Bug 207918] C++ ostream operator << broken for unsigned long long when using showbase with octal format
Message-ID:  <bug-207918-15-v7vZjHVR4x@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-207918-15@https.bugs.freebsd.org/bugzilla/>
References:  <bug-207918-15@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207918

--- Comment #10 from commit-hook@freebsd.org ---
A commit references this bug:

Author: dim
Date: Sat May  6 21:43:55 UTC 2017
New revision: 317888
URL: https://svnweb.freebsd.org/changeset/base/317888

Log:
  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

Changes:
  head/contrib/libc++/include/locale

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-207918-15-v7vZjHVR4x>