BIND 10 trac838, updated. c4412dfaa0bb8c6e95cb4476e80b648cfa9288f2 [trac838] Check the value passed to isspace() is not less than 0
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed May 25 07:29:56 UTC 2011
The branch, trac838 has been updated
via c4412dfaa0bb8c6e95cb4476e80b648cfa9288f2 (commit)
from d098ac2ee97872ebcd8366cb700d7d2a5e668b8c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit c4412dfaa0bb8c6e95cb4476e80b648cfa9288f2
Author: Ocean Wang <wanghaidong at cnnic.cn>
Date: Wed May 25 15:28:36 2011 +0800
[trac838] Check the value passed to isspace() is not less than 0
-----------------------------------------------------------------------
Summary of changes:
src/lib/util/encode/base_n.cc | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/util/encode/base_n.cc b/src/lib/util/encode/base_n.cc
index 0e34181..8da3ea5 100644
--- a/src/lib/util/encode/base_n.cc
+++ b/src/lib/util/encode/base_n.cc
@@ -174,8 +174,10 @@ public:
return (*this);
}
void skipSpaces() {
- while (base_ != base_end_ &&
- isspace(static_cast<unsigned char>(*base_)))
+ // If *base_ < 0, on Windows platform with Visual Studio compiler
+ // it may trigger _ASSERTE((unsigned)(c + 1) <= 256);
+ // so make sure that the parameter of isspace() is larger than 0
+ while (base_ != base_end_ && ((*base_) >= 0) && isspace(*base_))
{
++base_;
}
More information about the bind10-changes
mailing list