aboutsummaryrefslogtreecommitdiff
path: root/gcc/analyzer/sm-malloc.cc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2023-08-11 12:27:58 +0100
committerJonathan Wakely <jwakely@redhat.com>2023-08-11 14:33:01 +0100
commitc19b542a177b7b65b013e535ae9f384352808d11 (patch)
treee6487e8d8c1393a9219c441ce4ec08fd6c5d4a2d /gcc/analyzer/sm-malloc.cc
parent7723684fafd085bb567579461fb54a746abbea4f (diff)
downloadgcc-c19b542a177b7b65b013e535ae9f384352808d11.zip
gcc-c19b542a177b7b65b013e535ae9f384352808d11.tar.gz
gcc-c19b542a177b7b65b013e535ae9f384352808d11.tar.bz2
libstdc++: Handle invalid values in std::chrono pretty printers
This avoids an IndexError exception when printing invalid chrono::month or chrono::weekday values. libstdc++-v3/ChangeLog: * python/libstdcxx/v6/printers.py (StdChronoCalendarPrinter): Check for out-of-range month an weekday indices. * testsuite/libstdc++-prettyprinters/chrono.cc: Check invalid month and weekday values.
Diffstat (limited to 'gcc/analyzer/sm-malloc.cc')
0 files changed, 0 insertions, 0 deletions