mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Somehow memmove() got mapped to memset() in the patch table. Create a
real memmove() implementation and use that instead.
This commit is contained in:
parent
79be508c8f
commit
f1b78ee016
1 changed files with 12 additions and 1 deletions
|
|
@ -234,6 +234,7 @@ static uint32_t WmiQueryTraceInformation(uint32_t, void *, uint32_t,
|
|||
static uint32_t WmiTraceMessage(uint64_t, uint32_t, void *, uint16_t, ...);
|
||||
static uint32_t IoWMIRegistrationControl(device_object *, uint32_t);
|
||||
static void *ntoskrnl_memset(void *, int, size_t);
|
||||
static void *ntoskrnl_memmove(void *, void *, size_t);
|
||||
static char *ntoskrnl_strstr(char *, char *);
|
||||
static int ntoskrnl_toupper(int);
|
||||
static int ntoskrnl_tolower(int);
|
||||
|
|
@ -423,6 +424,16 @@ ntoskrnl_memset(buf, ch, size)
|
|||
return(memset(buf, ch, size));
|
||||
}
|
||||
|
||||
static void *
|
||||
ntoskrnl_memmove(dst, src, size)
|
||||
void *src;
|
||||
void *dst;
|
||||
size_t size;
|
||||
{
|
||||
bcopy(src, dst, size);
|
||||
return(dst);
|
||||
}
|
||||
|
||||
static char *
|
||||
ntoskrnl_strstr(s, find)
|
||||
char *s, *find;
|
||||
|
|
@ -4142,7 +4153,7 @@ image_patch_table ntoskrnl_functbl[] = {
|
|||
IMPORT_CFUNC_MAP(strstr, ntoskrnl_strstr, 0),
|
||||
IMPORT_CFUNC_MAP(strchr, index, 0),
|
||||
IMPORT_CFUNC(memcpy, 0),
|
||||
IMPORT_CFUNC_MAP(memmove, ntoskrnl_memset, 0),
|
||||
IMPORT_CFUNC_MAP(memmove, ntoskrnl_memmove, 0),
|
||||
IMPORT_CFUNC_MAP(memset, ntoskrnl_memset, 0),
|
||||
IMPORT_SFUNC(IoAllocateDriverObjectExtension, 4),
|
||||
IMPORT_SFUNC(IoGetDriverObjectExtension, 2),
|
||||
|
|
|
|||
Loading…
Reference in a new issue