mirror of
https://github.com/vxcontrol/MemoryModule.git
synced 2026-07-22 06:35:28 -04:00
Add some checks to prevent overruns on broken input.
This commit is contained in:
@@ -36,7 +36,7 @@ int RunFromMemory(void)
|
||||
assert(read == static_cast<size_t>(size));
|
||||
fclose(fp);
|
||||
|
||||
handle = MemoryLoadLibrary(data);
|
||||
handle = MemoryLoadLibrary(data, size);
|
||||
if (handle == NULL)
|
||||
{
|
||||
_tprintf(_T("Can't load library from memory.\n"));
|
||||
|
||||
Reference in New Issue
Block a user