]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Do not allow chrono::parse to overflow for %C [PR111162]
authorJonathan Wakely <jwakely@redhat.com>
Tue, 29 Aug 2023 12:07:21 +0000 (13:07 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 1 Sep 2023 08:55:48 +0000 (09:55 +0100)
commit207c507499d23f0176cbfdfe96d3cd50dec39584
tree5c91ca274ae41f03932197307b9df958ec999968
parent17a371d05a796ba8df0300afa4ddc3bdef523f9a
libstdc++: Do not allow chrono::parse to overflow for %C [PR111162]

libstdc++-v3/ChangeLog:

PR libstdc++/111162
* include/bits/chrono_io.h (_Parser::Operator()): Check %C
values are in range of year::min() to year::max().
* testsuite/std/time/parse.cc: Check out of range centuries.
libstdc++-v3/include/bits/chrono_io.h
libstdc++-v3/testsuite/std/time/parse.cc
This page took 0.060017 seconds and 6 git commands to generate.