Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > by-pkgid > e51635675f923431aca84a49c6849820 > files > 5

heartbeat-1.2.3-5.2.20060mdk.src.rpm

--- heartbeat-1.2.4/lib/clplumbing/cl_netstring.c	2004-08-05 12:30:47.000000000 -0600
+++ heartbeat-1.2.5/lib/clplumbing/cl_netstring.c	2006-08-13 22:27:22.000000000 -0600
@@ -257,6 +257,9 @@ peel_netstring(const char * s, const cha
 	*data = sp;
 
 	sp += (*len);
+	if (sp >= smax) {
+		return(HA_FAIL);
+	}
 	if (*sp != ','){
 		return(HA_FAIL);
 	}