diff options
author | Steve Huston <shuston@riverace.com> | 2005-02-02 20:31:36 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2005-02-02 20:31:36 +0000 |
commit | a1a6a7923022c521c5a77af2b38603a8bfbb414d (patch) | |
tree | e79fd65dea9c85b6c796650aba5e4f3dfdec69aa | |
parent | 277498132659a9acbbca88e206f1a3496c45f4ff (diff) | |
download | ATCD-a1a6a7923022c521c5a77af2b38603a8bfbb414d.tar.gz |
ChangeLogTag:Wed Feb 2 15:25:39 2005 Steve Huston <shuston@riverace.com>
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | ace/OS_NS_stdio.inl | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 2e05a869ab1..3c85fce6f14 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Wed Feb 2 15:25:39 2005 Steve Huston <shuston@riverace.com> + + * ace/OS_NS_stdio.inl (vsprintf): Clarified the reason why ULONG_MAX + doesn't always work with vswprintf(). glibc (at least newer versions + such as 2.3) check the bounds of the buffer/size combination before + attempting the operation. + Wed Feb 02 08:57:23 2005 Balachandran Natarajan <bala@dre.vanderbilt.edu> * bin/make_release: diff --git a/ace/OS_NS_stdio.inl b/ace/OS_NS_stdio.inl index e70ced3119e..421377fcbd0 100644 --- a/ace/OS_NS_stdio.inl +++ b/ace/OS_NS_stdio.inl @@ -1030,7 +1030,8 @@ ACE_OS::vsprintf (wchar_t *buffer, const wchar_t *format, va_list argptr) // The XPG4/UNIX98/C99 signature of the wide-char sprintf has a // maxlen argument. Since this method doesn't supply one, pass in - // a length that works (ULONG_MAX doesn't). If this isn't ok, use + // a length that works (ULONG_MAX doesn't on all platform since some check + // to see if the operation will remain in bounds). If this isn't ok, use // ACE_OS::snprintf(). return vswprintf (buffer, 4096, format, argptr); |