[Common-cvs] util rlstate.cpp,1.9,1.10
stanb at helixcommunity.org stanb at helixcommunity.orgUpdate of /cvsroot/common/util
In directory cvs01.internal.helixcommunity.org:/tmp/cvs-serv2829
Modified Files:
rlstate.cpp
Log Message:
Security volnurability fix (merge from hxclient_2_0_4_cayenne) (PR# 208445)
Index: rlstate.cpp
===================================================================
RCS file: /cvsroot/common/util/rlstate.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- rlstate.cpp 10 Jul 2007 20:33:51 -0000 1.9
+++ rlstate.cpp 14 Jan 2008 17:58:36 -0000 1.10
@@ -154,7 +154,7 @@
char* pOffset = pRuleBook;
UINT16 idxCurrentRule = 0;
- while(*pOffset != '\0' && ((UINT16)(pOffset - pRuleBook) < usBookSize))
+ while(*pOffset != '\0' && ((UINT16)(pOffset - pRuleBook) < usBookSize) && idxCurrentRule < num_rules)
{
while(*pOffset != ';')
{