aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2016-07-21 20:38:51 +0100
committerJonathan Wakely <jwakely@redhat.com>2021-11-16 14:09:00 +0000
commit8d8e8f3ad567c7bd1de708fcc841f691d9686c4d (patch)
treec04fb30c21bbc8dabf46a40070225b57f4e70b61 /gcc
parent971976947154c7442a2f8262a9bbd1bc540e6544 (diff)
downloadgcc-8d8e8f3ad567c7bd1de708fcc841f691d9686c4d.zip
gcc-8d8e8f3ad567c7bd1de708fcc841f691d9686c4d.tar.gz
gcc-8d8e8f3ad567c7bd1de708fcc841f691d9686c4d.tar.bz2
libstdc++: Fix out-of-bound array accesses in testsuite
I fixed some undefined behaviour in string tests in r238609, but I only fixed the narrow char versions. This applies the same fixes to the wchar_t ones. These problems were found when testing a patch to make std::basic_string usable in constexpr. libstdc++-v3/ChangeLog: * testsuite/21_strings/basic_string/modifiers/append/wchar_t/1.cc: Fix reads past the end of strings. * testsuite/21_strings/basic_string/operations/compare/wchar_t/1.cc: Likewise. * testsuite/experimental/string_view/operations/compare/wchar_t/1.cc: Likewise.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions