Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Added null check to option processing call.
Patrick G. Bridges [Tue, 19 Feb 2013 16:04:12 +0000 (09:04 -0700)]
palacios/src/palacios/vmm.c

index c5a7f00..86b149a 100644 (file)
@@ -125,9 +125,13 @@ void V3_parse_options(char *options)
 {
     char *currKey = NULL, *currVal = NULL;
     int parseKey = 1;
-    int len = strlen(options);
+    int len;
     char *c;
+    if (!options) {
+       return; 
+    }
 
+    len = strlen(options);
     option_storage = V3_Malloc(len + 1);
     strcpy(option_storage, options);
     c = option_storage;