We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e75438a commit f76963bCopy full SHA for f76963b
1 file changed
MemoryModule.c
@@ -413,7 +413,7 @@ HMEMORYMODULE MemoryLoadLibraryEx(const void *data,
413
PAGE_READWRITE);
414
415
// copy PE header to code
416
- memcpy(headers, dos_header, dos_header->e_lfanew + old_header->OptionalHeader.SizeOfHeaders);
+ memcpy(headers, dos_header, old_header->OptionalHeader.SizeOfHeaders);
417
result->headers = (PIMAGE_NT_HEADERS)&((const unsigned char *)(headers))[dos_header->e_lfanew];
418
419
// update position
0 commit comments