Fixed null pointer dereference.

This commit is contained in:
Armin Novak 2014-11-17 01:20:46 +01:00
parent e390dd0eeb
commit 6ef98e2aa7

View File

@ -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];