X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=linux_module%2Fmemtrack.c;h=66c0c03fb5215d0a2bd73f34dfdcd777a35b8318;hb=a5d2c00cc461b4a60a1360a2a0bba55cef467bab;hp=b64ab296196482de1cd2dc631098c1b62f4060fd;hpb=6fa605075d1944da0a88a389122ea24bbc583329;p=palacios.git diff --git a/linux_module/memtrack.c b/linux_module/memtrack.c index b64ab29..66c0c03 100644 --- a/linux_module/memtrack.c +++ b/linux_module/memtrack.c @@ -99,6 +99,7 @@ static int memtrack_snap(struct v3_guest *guest, //INFO("num_cores=%u",num_cores); + // overflow possible here, but only for an insane number of cores if (!(user_snap=palacios_alloc(sizeof(v3_mem_track_snapshot) + num_cores * sizeof(struct v3_core_mem_track)))) { ERROR("palacios: cannot allocate memory for copying user snapshot\n"); goto fail;