stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Farid Zaripov" <Farid_Zari...@epam.com>
Subject [PATCH] time_put.cpp
Date Thu, 27 Sep 2007 12:59:06 GMT
  The MSVC issues parameter validation error in
22.locale.time.put.mt.cpp test.

The parameter checking code below:
---------
int (isspace) (int c)
{
    _ASSERTE((unsigned)(c + 1) <= 256);
    ...
}
---------

  The same validation performed in all isxxx() functions. This
validation asserts on all c < -1.

  The patch is attached.

  ChangeLog:
  * time_put.cpp (__rw_get_date_fmat): Convert char argument of
isspace(), isdigit(), ispunct() to unsigned char .
  (__rw_get_time_fmat): Ditto.

Farid.

Mime
View raw message