public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/95851] New: [10/11 Regression] std::to_chars(p, p, c,  2) segfault
@ 2020-06-23 21:43 redi at gcc dot gnu.org
  2020-06-23 21:44 ` [Bug libstdc++/95851] " redi at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2020-06-23 21:43 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95851

            Bug ID: 95851
           Summary: [10/11 Regression] std::to_chars(p, p, c, 2) segfault
           Product: gcc
           Version: 10.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redi at gcc dot gnu.org
  Target Milestone: ---

The following has undefined behaviour, trying to write past the end of the
range:

#include <charconv>
int main()
{
  char c = 0;
  std::to_chars(&c, &c, c, 2);
}

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-06-24 16:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-23 21:43 [Bug libstdc++/95851] New: [10/11 Regression] std::to_chars(p, p, c, 2) segfault redi at gcc dot gnu.org
2020-06-23 21:44 ` [Bug libstdc++/95851] " redi at gcc dot gnu.org
2020-06-24 11:55 ` cvs-commit at gcc dot gnu.org
2020-06-24 15:02 ` cvs-commit at gcc dot gnu.org
2020-06-24 16:32 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).