projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e390dd0
)
Fixed null pointer dereference.
author
Armin Novak
<armin.novak@gmail.com>
Mon, 17 Nov 2014 00:20:46 +0000
(
01:20
+0100)
committer
Armin Novak
<armin.novak@gmail.com>
Mon, 17 Nov 2014 00:20:46 +0000
(
01:20
+0100)
winpr/libwinpr/rpc/ndr_pointer.c
patch
|
blob
|
history
diff --git
a/winpr/libwinpr/rpc/ndr_pointer.c
b/winpr/libwinpr/rpc/ndr_pointer.c
index
d8ae596
..
dbfdaee
100644
(file)
--- a/
winpr/libwinpr/rpc/ndr_pointer.c
+++ b/
winpr/libwinpr/rpc/ndr_pointer.c
@@
-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];