[Bug libstdc++/95851] New: [10/11 Regression] std::to_chars(p, p, c, 2) segfault
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jun 23 21:43:54 GMT 2020
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);
}
More information about the Gcc-bugs
mailing list