]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Fix out-of-bounds read in format string "{:{}." [PR110974]
authorJonathan Wakely <jwakely@redhat.com>
Thu, 10 Aug 2023 22:15:29 +0000 (23:15 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 10 Aug 2023 22:31:37 +0000 (23:31 +0100)
commitecfd8c7ffecf9e8f851c996ec149fbda7ef202f5
tree4347f48117f1b3f0c4e21824e2200a44a7b9405a
parentf48a5423964f72e2e1ba0ad6a14d9d1464a78bed
libstdc++: Fix out-of-bounds read in format string "{:{}." [PR110974]

libstdc++-v3/ChangeLog:

PR libstdc++/110974
* include/std/format (_Spec::_S_parse_width_or_precision): Check
for empty range before dereferencing iterator.
* testsuite/std/format/string.cc: Check for expected exception.
Fix expected exception message in test_pr110862() and actually
call it.
libstdc++-v3/include/std/format
libstdc++-v3/testsuite/std/format/string.cc
This page took 0.059698 seconds and 5 git commands to generate.