Hi,

the attached (trivial) patch will fix a segmentation fault I get with 
cibadmin.


-- 
Bernd Schubert
Q-Leap Networks GmbH
# HG changeset patch
# User Bernd Schubert <[EMAIL PROTECTED]>
# Date 1175191150 -7200
# Node ID 357daeba1d7da6d230077eb4f103116216addaa5
# Parent  0c88fadb23cbc842704e0243ecaf0f4fba03c548
Fix xml parser bug.

diff -r 0c88fadb23cb -r 357daeba1d7d lib/crm/common/xml.c
--- a/lib/crm/common/xml.c	Thu Mar 29 16:22:30 2007 +0200
+++ b/lib/crm/common/xml.c	Thu Mar 29 19:59:10 2007 +0200
@@ -1469,7 +1469,7 @@ parse_xml(const char *input, size_t *off
 				}
 				break;
 			case '>':
-				while(our_input[lpc+1] != '<') {
+				while(lpc < max && our_input[lpc+1] != '<') {
 					lpc++;
 				}
 				break;
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to