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.


Cleanup and sanity-checking of use of strncpy/strcpy (Coverity static analysis)
[palacios.git] / palacios / src / palacios / vmm_symmod.c
index 82d2f35..1cb2033 100644 (file)
@@ -195,6 +195,7 @@ static int symbol_hcall_handler(struct guest_info * core, hcall_id_t hcall_id, v
        }
 
        strncpy(new_symbol->name, sym_name, 256);
+       new_symbol->name[255] = 0;
        new_symbol->linkage = tmp_symbol->value;
 
        list_add(&(new_symbol->sym_node), &(symmod_state->v3_sym_list));