Fixed null pointer dereference.
This commit is contained in:
parent
e390dd0eeb
commit
6ef98e2aa7
@ -151,7 +151,7 @@ void NdrpPointerBufferSize(unsigned char* pMemory, PFORMAT_STRING pFormat, PMIDL
|
||||
break;
|
||||
}
|
||||
|
||||
if (attributes & FC_POINTER_DEREF)
|
||||
if ((attributes & FC_POINTER_DEREF) && pMemory)
|
||||
pMemory = *(unsigned char**) pMemory;
|
||||
|
||||
pfnSizeRoutine = pfnSizeRoutines[*pNextFormat];
|
||||
|
Loading…
x
Reference in New Issue
Block a user