[ros-diffs] [royce] 12781: buffer overflow (& invalid registry path for device) bugfix: DataPtr != KeyInformation->Data on 2nd+ passes

royce at svn.reactos.com royce at svn.reactos.com
Tue Jan 4 07:24:19 CET 2005


buffer overflow (& invalid registry path for device) bugfix: DataPtr !=
KeyInformation->Data on 2nd+ passes
Modified: trunk/reactos/drivers/net/ndis/ndis/protocol.c
  _____  

Modified: trunk/reactos/drivers/net/ndis/ndis/protocol.c
--- trunk/reactos/drivers/net/ndis/ndis/protocol.c	2005-01-04
05:09:53 UTC (rev 12780)
+++ trunk/reactos/drivers/net/ndis/ndis/protocol.c	2005-01-04
06:24:17 UTC (rev 12781)
@@ -855,7 +855,7 @@

         }
 
       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) );
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050104/501da12a/attachment.html


More information about the Ros-diffs mailing list