[Datatype-cvs] smil/common smlpkt.cpp,1.11,1.12

[Datatype-cvs] smil/common smlpkt.cpp,1.11,1.12

kvalicherla at helixcommunity.org kvalicherla at helixcommunity.org
Tue Sep 16 10:46:26 PDT 2008


Update of /cvsroot/datatype/smil/common
In directory cvs01.internal.helixcommunity.org:/tmp/cvs-serv7635

Modified Files:
	smlpkt.cpp 
Log Message:
Fix for Bug 226809: Adding a check to avoid possible buffer overflow in the scenario described in the bug report. 


Index: smlpkt.cpp
===================================================================
RCS file: /cvsroot/datatype/smil/common/smlpkt.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- smlpkt.cpp	6 Jul 2007 22:01:45 -0000	1.11
+++ smlpkt.cpp	16 Sep 2008 17:46:23 -0000	1.12
@@ -457,8 +457,9 @@
             }
             else
             {
+                int iLen = 0;
                 while((pCur<pEnd) && !isspace(*pCur) && (*pCur != ')') && 
-                      (*pCur != '(') )
+                      (*pCur != '(') && (++iLen < MAX_STRING_LEN))
                 {
                     if(*pCur == '\\')
                     {




More information about the Datatype-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.