You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by pe...@apache.org on 2002/04/18 16:55:38 UTC
cvs commit: xml-xerces/c/src/xercesc/util HexBin.cpp
peiyongz 02/04/18 07:55:38
Modified: c/src/xercesc/util HexBin.cpp
Log:
Bug#7301: Redundant range-check in HexBin.cpp, patch from Martin Kalen
Revision Changes Path
1.2 +6 -3 xml-xerces/c/src/xercesc/util/HexBin.cpp
Index: HexBin.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/HexBin.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- HexBin.cpp 1 Feb 2002 22:22:10 -0000 1.1
+++ HexBin.cpp 18 Apr 2002 14:55:38 -0000 1.2
@@ -56,8 +56,11 @@
/*
* $Log: HexBin.cpp,v $
- * Revision 1.1 2002/02/01 22:22:10 peiyongz
- * Initial revision
+ * Revision 1.2 2002/04/18 14:55:38 peiyongz
+ * Bug#7301: Redundant range-check in HexBin.cpp, patch from Martin Kalen
+ *
+ * Revision 1.1.1.1 2002/02/01 22:22:10 peiyongz
+ * sane_include
*
* Revision 1.1 2001/05/16 15:25:38 tng
* Schema: Add Base64 and HexBin. By Pei Yong Zhang.
@@ -112,13 +115,13 @@
// -----------------------------------------------------------------------
// Helper methods
// -----------------------------------------------------------------------
-bool HexBin::isHex(const XMLCh& octect)
+bool HexBin::isHex(const XMLCh& octet)
{
// sanity check to avoid out-of-bound index
- if (( octect >= BASELENGTH ) || ( octect < 0 ))
+ if ( octet >= BASELENGTH )
return false;
- return (hexNumberTable[octect]);
+ return (hexNumberTable[octet]);
}
void HexBin::init()
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org