From: Kyle Hale Date: Sun, 6 Sep 2015 20:01:20 +0000 (-0500) Subject: fix potential overflow condition in VMX assist X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=commitdiff_plain;h=82d082daad3fe8afad4be97d97093a3dfb768e1f fix potential overflow condition in VMX assist --- diff --git a/palacios/src/palacios/vmx_assist.c b/palacios/src/palacios/vmx_assist.c index 5766b15..777a312 100644 --- a/palacios/src/palacios/vmx_assist.c +++ b/palacios/src/palacios/vmx_assist.c @@ -331,7 +331,7 @@ int v3_vmxassist_init(struct guest_info * core, struct vmx_data * vmx_state) { if (core->shdw_pg_mode == NESTED_PAGING) { // setup 1to1 page table internally. - int i = 0; + unsigned long i = 0; pde32_4MB_t * pde = NULL; V3_Print(core->vm_info, core, "Setting up internal VMXASSIST page tables\n");