- NtQueryInformationProcess with ProcessImageFileName query type:

Free the buffer allocated by SeLocateProcessImageName, and set return status if return buffer is too small (so caller will know to allocate more memory). Spotted by #3714
See issue #3714 for more details.

svn path=/trunk/; revision=36136
This commit is contained in:
Stefan Ginsberg 2008-09-11 14:24:41 +00:00
parent f803831055
commit 37cea55dc6

View file

@ -426,6 +426,14 @@ NtQueryInformationProcess(IN HANDLE ProcessHandle,
} }
_SEH_END; _SEH_END;
} }
else
{
/* Buffer too small */
Status = STATUS_INFO_LENGTH_MISMATCH;
}
/* Free the image path */
ExFreePool(ImageName);
} }
break; break;