fix(win): Fix occasional buffer overflows (#166)
Some checks are pending
continuous-integration/drone/push Build is running
Some checks are pending
continuous-integration/drone/push Build is running
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:
parent
4349aec1f2
commit
0b042af3e2
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue