[Commits] r662 - trunk/daemon/src

new-commit at lists.openvcp.org new-commit at lists.openvcp.org
Sun May 3 08:32:12 UTC 2009


Author: ftx
Date: 2009-05-03 08:32:12 +0000 (Sun, 03 May 2009)
New Revision: 662

Modified:
   trunk/daemon/src/xml.c
Log:
probable fix for memory corruption


Modified: trunk/daemon/src/xml.c
===================================================================
--- trunk/daemon/src/xml.c	2009-05-02 17:38:26 UTC (rev 661)
+++ trunk/daemon/src/xml.c	2009-05-03 08:32:12 UTC (rev 662)
@@ -943,8 +943,9 @@
 
 struct ovcp_request_st *ovcp_parse_request(char *xmlstr)
 {
+	if(xmlstr == NULL) return NULL;
+	if(strlen(xmlstr) <= 0) return NULL;
 
-
 	xmlTextReaderPtr reader;
 	struct ovcp_request_st *request;
 	struct ovcp_data_st *tmpdata = NULL;



More information about the Commits mailing list