diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-02-16 11:09:57 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-02-16 11:09:57 +0000 |
commit | 6406ce679ac207eb92bf2a74435a985f32bce5f2 (patch) | |
tree | d954d836b9659bba7b5134595ae4d3262cac68d9 /libstdc++-v3 | |
parent | f55d272190249af82db65e50a0ab0069515dd0e0 (diff) | |
download | ppe42-gcc-6406ce679ac207eb92bf2a74435a985f32bce5f2.tar.gz ppe42-gcc-6406ce679ac207eb92bf2a74435a985f32bce5f2.zip |
2005-02-16 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/19829
* testsuite/21_strings/basic_string/find/char/3.cc: Fix the test
at line #66 to not access str_lit01 beyond its end.
* testsuite/21_strings/basic_string/find/wchar_t/3.cc: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95103 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 7 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/21_strings/basic_string/find/char/3.cc | 4 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/21_strings/basic_string/find/wchar_t/3.cc | 4 |
3 files changed, 11 insertions, 4 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 0d5155bc367..35ba0d4fb0d 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,10 @@ +2005-02-16 Paolo Carlini <pcarlini@suse.de> + + PR libstdc++/19829 + * testsuite/21_strings/basic_string/find/char/3.cc: Fix the test + at line #66 to not access str_lit01 beyond its end. + * testsuite/21_strings/basic_string/find/wchar_t/3.cc: Likewise. + 2005-02-15 Paolo Carlini <pcarlini@suse.de> Jon Grimm <jgrimm2@us.ibm.com> diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/find/char/3.cc b/libstdc++-v3/testsuite/21_strings/basic_string/find/char/3.cc index 24b73333744..b8643e08c3f 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/find/char/3.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/find/char/3.cc @@ -1,6 +1,6 @@ // 2003-05-04 Paolo Carlini <pcarlini@unitus.it> -// Copyright (C) 2003 Free Software Foundation, Inc. +// Copyright (C) 2003, 2005 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -63,7 +63,7 @@ bool test03(void) // size_type find_first_not_of(const char* s, size_type pos, size_type n) const; csz01 = str01.find_first_not_of(str_lit01, 0, 0); VERIFY( csz01 == 0 ); - csz01 = str01.find_first_not_of(str_lit01, 0, 10); + csz01 = str01.find_first_not_of(str_lit01, 0, 8); VERIFY( csz01 == 8 ); csz01 = str01.find_first_not_of(str_lit01, 10, 0); VERIFY( csz01 == 10 ); diff --git a/libstdc++-v3/testsuite/21_strings/basic_string/find/wchar_t/3.cc b/libstdc++-v3/testsuite/21_strings/basic_string/find/wchar_t/3.cc index 6964e013f30..dd27c438063 100644 --- a/libstdc++-v3/testsuite/21_strings/basic_string/find/wchar_t/3.cc +++ b/libstdc++-v3/testsuite/21_strings/basic_string/find/wchar_t/3.cc @@ -1,6 +1,6 @@ // 2003-05-04 Paolo Carlini <pcarlini@unitus.it> -// Copyright (C) 2003 Free Software Foundation, Inc. +// Copyright (C) 2003, 2005 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -63,7 +63,7 @@ bool test03(void) // size_type find_first_not_of(const char* s, size_type pos, size_type n) const; csz01 = str01.find_first_not_of(str_lit01, 0, 0); VERIFY( csz01 == 0 ); - csz01 = str01.find_first_not_of(str_lit01, 0, 10); + csz01 = str01.find_first_not_of(str_lit01, 0, 8); VERIFY( csz01 == 8 ); csz01 = str01.find_first_not_of(str_lit01, 10, 0); VERIFY( csz01 == 10 ); |