mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-29 15:43:52 +00:00
Fix buffer overflow in windows tap driver
This commit is contained in:
parent
ff23d3051f
commit
b3331c5ec2
@ -272,7 +272,8 @@ tapReadConfiguration(
|
||||
|
||||
if (status == NDIS_STATUS_SUCCESS)
|
||||
{
|
||||
if (configParameter->ParameterType == NdisParameterString)
|
||||
if (configParameter->ParameterType == NdisParameterString
|
||||
&& configParameter->ParameterData.StringData.Length <= sizeof(Adapter->NetCfgInstanceIdBuffer) - sizeof(WCHAR))
|
||||
{
|
||||
DEBUGP (("[TAP] NdisReadConfiguration (NetCfgInstanceId=%wZ)\n",
|
||||
&configParameter->ParameterData.StringData ));
|
||||
|
Loading…
x
Reference in New Issue
Block a user