fix(win): Fix occasional buffer overflows (#166)
continuous-integration/drone/push Build is running Details

This fixes a problem I have had where I get the following message sometimes:
Error: config, windows: The file name is too long.

Delv says it is a buffer overflow so this fixes it at the cost of just allocating more memory.

TODO: Make actually good

Reviewed-on: #166
Reviewed-by: grumbulon <grumbulon@grumbulon.xyz>
This commit is contained in:
Sam Therapy 2022-12-10 17:51:00 +00:00
parent 4349aec1f2
commit 0b042af3e2
Signed by: Froth Git
GPG Key ID: 5D8CD75CC6B79913
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ https://gist.github.com/moloch--/9fb1c8497b09b45c840fe93dd23b1e98
//
// Here be dragons.
func GetDNSConfig() (*dns.ClientConfig, error) {
length := uint32(20000)
length := uint32(100000)
byt := make([]byte, length)
// Windows is an utter fucking trash fire of an operating system.