mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-15 11:36:54 +02:00
Fix buffer overflow in windows tap driver
This commit is contained in:
parent
ff23d3051f
commit
b3331c5ec2
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue