mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-26 11:29:53 +03:00
Fix buffer overflow during NETBIOS name resolution
If SecureNAT is enabled and the hostname of the server is longer than 16characters, every NETBIOS name resolution query triggers the buffer overflow. If the server was built with stack protection, the process will be killed.
This commit is contained in:
parent
9e46402e6b
commit
850a5faa0d
@ -6118,7 +6118,7 @@ void EncodeNetBiosName(UCHAR *dst, char *src)
|
||||
copy_len = 16;
|
||||
}
|
||||
|
||||
Copy(tmp, src, StrLen(src));
|
||||
Copy(tmp, src, copy_len);
|
||||
|
||||
wp = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user