microsoft / go-winio

Win32 IO-related utilities for Go
MIT License
939 stars 181 forks source link

Bug: Close hvsock handle on listen error; fix tests #310

Closed helsaawy closed 7 months ago

helsaawy commented 7 months ago

Close the socket created in github.com/Microsoft/go-winio/pkg/ListenHvsock if either the Bind or Listen calls fail.

Go changed filepath.VolumeName code, resulting in different behavior in github.com/Microsoft/go-winio/pkg/fs.GetFileSystemType. Update test accordingly. Also add more debug logs to pkg\fs\resolve_test.go.

Also, move add skip for fuzzing on WS2019 or older to FuzzHvSockRxTx code directly, instead of in ci.yml.

See: https://go-review.googlesource.com/c/go/+/540277