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.


Lots of pedantic error checking in Palacios proper, especially for memory
[palacios.git] / palacios / src / gears / ext_execve_hook.c
index aa5bce2..c7307ab 100644 (file)
@@ -99,6 +99,11 @@ int v3_hook_executable (struct v3_vm_info * vm,
     struct exec_hook * hook = V3_Malloc(sizeof(struct exec_hook));
     struct v3_exec_hooks * hooks = &exec_hooks;
     addr_t key;
+
+    if (!hook) {
+       PrintError("Cannot allocate in hooking exec\n");
+       return -1;
+    }
     
     memset(hook, 0, sizeof(struct exec_hook));