Fix out-of-bound array accesses in libstdc++ testsuite
authorJonathan Wakely <jwakely@redhat.com>
Thu, 21 Jul 2016 19:38:51 +0000 (20:38 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 21 Jul 2016 19:38:51 +0000 (20:38 +0100)
commite93a101f83b67b47f2247505ff6fa9f39aa47442
tree68fb4010a5409749d66d2fd65b200aeb60dddd18
parent0a024155c41930a6994d08157a26900832cdfe63
Fix out-of-bound array accesses in libstdc++ testsuite

* testsuite/21_strings/basic_string/modifiers/append/char/1.cc: Fix
reads past the end of strings.
* testsuite/21_strings/basic_string/operations/compare/char/1.cc:
Likewise.
* testsuite/21_strings/char_traits/requirements/short/1.cc: Fix
invalid array accesses.
* testsuite/experimental/string_view/operations/compare/char/1.cc:
Fix read past the end of string.
* testsuite/util/testsuite_character.cc: Fix out-of-bounds write.

From-SVN: r238609
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/21_strings/basic_string/modifiers/append/char/1.cc
libstdc++-v3/testsuite/21_strings/basic_string/operations/compare/char/1.cc
libstdc++-v3/testsuite/21_strings/char_traits/requirements/short/1.cc
libstdc++-v3/testsuite/experimental/string_view/operations/compare/char/1.cc
libstdc++-v3/testsuite/util/testsuite_character.cc