diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2023-08-03 08:45:43 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-08-07 22:09:10 +0100 |
commit | 5d87f71bb462ccb78dd3d9d810ea08d96869cb4b (patch) | |
tree | 9f3d9355979598043fc0c298e91a3c9b38212e67 /libgcc | |
parent | eff0e7a4ae31d1e4e64ae37bbc10d073d8579255 (diff) | |
download | gcc-5d87f71bb462ccb78dd3d9d810ea08d96869cb4b.zip gcc-5d87f71bb462ccb78dd3d9d810ea08d96869cb4b.tar.gz gcc-5d87f71bb462ccb78dd3d9d810ea08d96869cb4b.tar.bz2 |
libstdc++: Fix past-the-end increment in std::format [PR110862]
At the end of a replacement field we should check that the closing brace
is actually present before incrementing past it.
libstdc++-v3/ChangeLog:
PR libstdc++/110862
* include/std/format (_Scanner::_M_on_replacement_field):
Check for expected '}' before incrementing iterator.
* testsuite/std/format/string.cc: Check "{0:{0}" format string.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions