gcc/libstdc++-v3/testsuite/21_strings
Jonathan Wakely ace857f95d PR libstdc++/89446 fix null pointer dereference in char_traits
PR libstdc++/89446
	* include/bits/char_traits.h (__constant_char_array): Check index is
	in range before dereferencing.
	(char_traits<char>::compare, char_traits<char>::find)
	(char_traits<char8_t>::compare, char_traits<char8_t>::find): Return
	immediately if n is zero.
	(char_traits<wchar_t>::compare, char_traits<wchar_t>::find): Likewise.
	Remove workarounds for PR 67026.
	* testsuite/21_strings/basic_string_view/operators/char/89446.cc:
	New test.
	* testsuite/21_strings/basic_string_view/operators/wchar_t/89446.cc:
	New test.

From-SVN: r269148
2019-02-23 03:01:59 +00:00
..
basic_string P0482R5 char8_t: Updates to existing standard library tests 2019-02-22 01:16:08 +00:00
basic_string_view PR libstdc++/89446 fix null pointer dereference in char_traits 2019-02-23 03:01:59 +00:00
c_strings Update copyright years. 2019-01-01 13:31:55 +01:00
char_traits/requirements P0482R5 char8_t: Updates to existing standard library tests 2019-02-22 01:16:08 +00:00
debug Update copyright years. 2019-01-01 13:31:55 +01:00
headers P0482R5 char8_t: Updates to existing standard library tests 2019-02-22 01:16:08 +00:00