[Common-cvs] util rlstate.cpp,1.9,1.10

[Common-cvs] util rlstate.cpp,1.9,1.10

stanb at helixcommunity.org stanb at helixcommunity.org
Mon Jan 14 09:58:43 PST 2008


Update 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 != ';')
 	{




More information about the Common-cvs mailing list
 

Site Map   |   Terms of Use   |   Privacy Policy   |   Contact Us

Copyright © 1995-2007 RealNetworks, Inc. All rights reserved. RealNetworks and Helix are trademarks of RealNetworks.
All other trademarks or registered trademarks are the property of their respective holders.