r269144 - in /branches/gcc-8-branch/libstdc++-v...

redi@gcc.gnu.org redi@gcc.gnu.org
Sat Feb 23 01:02:00 GMT 2019


Author: redi
Date: Sat Feb 23 01:02:05 2019
New Revision: 269144

URL: https://gcc.gnu.org/viewcvs?rev=269144&root=gcc&view=rev
Log:
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.
	* testsuite/21_strings/basic_string_view/operators/char/89446.cc:
	New test.

Added:
    branches/gcc-8-branch/libstdc++-v3/testsuite/21_strings/basic_string_view/operators/char/89446.cc
Modified:
    branches/gcc-8-branch/libstdc++-v3/ChangeLog
    branches/gcc-8-branch/libstdc++-v3/include/bits/char_traits.h



More information about the Gcc-cvs mailing list