projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2cca7e
)
buffer overflow (& invalid registry path for device) bugfix: DataPtr != KeyInformatio...
author
Royce Mitchell III
<royce3@ev1.net>
Tue, 4 Jan 2005 06:24:17 +0000
(06:24 +0000)
committer
Royce Mitchell III
<royce3@ev1.net>
Tue, 4 Jan 2005 06:24:17 +0000
(06:24 +0000)
svn path=/trunk/; revision=12781
reactos/drivers/net/ndis/ndis/protocol.c
patch
|
blob
|
history
diff --git
a/reactos/drivers/net/ndis/ndis/protocol.c
b/reactos/drivers/net/ndis/ndis/protocol.c
index
f83ff42
..
f0d61d0
100644
(file)
--- a/
reactos/drivers/net/ndis/ndis/protocol.c
+++ b/
reactos/drivers/net/ndis/ndis/protocol.c
@@
-855,7
+855,7
@@
NdisRegisterProtocol(
}
wcscpy(RegistryPathStr, SERVICES_KEY);
- wcscat(RegistryPathStr,
(((WCHAR *)(KeyInformation->Data)) +8 )
);
+ wcscat(RegistryPathStr,
DataPtr + 8
);
wcscat(RegistryPathStr, PARAMETERS_KEY);
wcsncat(RegistryPathStr, ProtocolCharacteristics->Name.Buffer, ProtocolCharacteristics->Name.Length / sizeof(WCHAR) );