mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
buffer overflow (& invalid registry path for device) bugfix: DataPtr != KeyInformation->Data on 2nd+ passes
svn path=/trunk/; revision=12781
This commit is contained in:
@@ -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) );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user