stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r550545 - in /incubator/stdcxx/trunk/tests/localization: 22.locale.ctype.is.cpp 22.locale.ctype.narrow.cpp 22.locale.ctype.scan.cpp 22.locale.ctype.tolower.cpp 22.locale.ctype.toupper.cpp
Date Mon, 25 Jun 2007 16:50:11 GMT
Author: faridz
Date: Mon Jun 25 09:50:10 2007
New Revision: 550545

URL: http://svn.apache.org/viewvc?view=rev&rev=550545
Log:
2007-06-25 Farid Zaripov <Farid_Zaripov@epam.com>

	* 22.locale.ctype.is.cpp: Check the pointer before dereferencing of it.
	* 22.locale.ctype.narrow.cpp: Ditto.
	* 22.locale.ctype.scan.cpp: Ditto.
	* 22.locale.ctype.tolower.cpp: Ditto.
	* 22.locale.ctype.toupper.cpp: Ditto.

Modified:
    incubator/stdcxx/trunk/tests/localization/22.locale.ctype.is.cpp
    incubator/stdcxx/trunk/tests/localization/22.locale.ctype.narrow.cpp
    incubator/stdcxx/trunk/tests/localization/22.locale.ctype.scan.cpp
    incubator/stdcxx/trunk/tests/localization/22.locale.ctype.tolower.cpp
    incubator/stdcxx/trunk/tests/localization/22.locale.ctype.toupper.cpp

Modified: incubator/stdcxx/trunk/tests/localization/22.locale.ctype.is.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/localization/22.locale.ctype.is.cpp?view=diff&rev=550545&r1=550544&r2=550545
==============================================================================
--- incubator/stdcxx/trunk/tests/localization/22.locale.ctype.is.cpp (original)
+++ incubator/stdcxx/trunk/tests/localization/22.locale.ctype.is.cpp Mon Jun 25 09:50:10 2007
@@ -80,7 +80,7 @@
 
 #define BEGIN_LOCALE_LOOP(num, locname, loop_cntrl)                        \
    for (const char* locname = rw_locales (LC_CTYPE, 0);                    \
-        *locname; locname += std::strlen (locname) + 1) {                  \
+        locname && *locname; locname += std::strlen (locname) + 1) {       \
        _TRY {                                                              \
            const std::locale loc (locname);                                \
            const std::ctype<char> &ctc =                                   \

Modified: incubator/stdcxx/trunk/tests/localization/22.locale.ctype.narrow.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/localization/22.locale.ctype.narrow.cpp?view=diff&rev=550545&r1=550544&r2=550545
==============================================================================
--- incubator/stdcxx/trunk/tests/localization/22.locale.ctype.narrow.cpp (original)
+++ incubator/stdcxx/trunk/tests/localization/22.locale.ctype.narrow.cpp Mon Jun 25 09:50:10
2007
@@ -80,7 +80,7 @@
 
 #define BEGIN_LOCALE_LOOP(num, locname, loop_cntrl)                        \
    for (const char* locname = rw_locales (LC_CTYPE, 0);                    \
-        *locname; locname += std::strlen (locname) + 1) {                  \
+        locname && *locname; locname += std::strlen (locname) + 1) {       \
        _TRY {                                                              \
            const std::locale loc (locname);                                \
            const std::ctype<char> &ctc =                                   \

Modified: incubator/stdcxx/trunk/tests/localization/22.locale.ctype.scan.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/localization/22.locale.ctype.scan.cpp?view=diff&rev=550545&r1=550544&r2=550545
==============================================================================
--- incubator/stdcxx/trunk/tests/localization/22.locale.ctype.scan.cpp (original)
+++ incubator/stdcxx/trunk/tests/localization/22.locale.ctype.scan.cpp Mon Jun 25 09:50:10
2007
@@ -80,7 +80,7 @@
 
 #define BEGIN_LOCALE_LOOP(num, locname, loop_cntrl)                        \
    for (const char* locname = rw_locales (LC_CTYPE, 0);                    \
-        *locname; locname += std::strlen (locname) + 1) {                  \
+        locname && *locname; locname += std::strlen (locname) + 1) {       \
        _TRY {                                                              \
            const std::locale loc (locname);                                \
            const std::ctype<char> &ctc =                                   \

Modified: incubator/stdcxx/trunk/tests/localization/22.locale.ctype.tolower.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/localization/22.locale.ctype.tolower.cpp?view=diff&rev=550545&r1=550544&r2=550545
==============================================================================
--- incubator/stdcxx/trunk/tests/localization/22.locale.ctype.tolower.cpp (original)
+++ incubator/stdcxx/trunk/tests/localization/22.locale.ctype.tolower.cpp Mon Jun 25 09:50:10
2007
@@ -80,7 +80,7 @@
 
 #define BEGIN_LOCALE_LOOP(num, locname, loop_cntrl)                        \
    for (const char* locname = rw_locales (LC_CTYPE, 0);                    \
-        *locname; locname += std::strlen (locname) + 1) {                  \
+        locname && *locname; locname += std::strlen (locname) + 1) {       \
        _TRY {                                                              \
            const std::locale loc (locname);                                \
            const std::ctype<char> &ctc =                                   \

Modified: incubator/stdcxx/trunk/tests/localization/22.locale.ctype.toupper.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/localization/22.locale.ctype.toupper.cpp?view=diff&rev=550545&r1=550544&r2=550545
==============================================================================
--- incubator/stdcxx/trunk/tests/localization/22.locale.ctype.toupper.cpp (original)
+++ incubator/stdcxx/trunk/tests/localization/22.locale.ctype.toupper.cpp Mon Jun 25 09:50:10
2007
@@ -80,7 +80,7 @@
 
 #define BEGIN_LOCALE_LOOP(num, locname, loop_cntrl)                        \
    for (const char* locname = rw_locales (LC_CTYPE, 0);                    \
-        *locname; locname += std::strlen (locname) + 1) {                  \
+        locname && *locname; locname += std::strlen (locname) + 1) {       \
        _TRY {                                                              \
            const std::locale loc (locname);                                \
            const std::ctype<char> &ctc =                                   \



Mime
View raw message