VDB
Sign up
HIGH7.5

GO-2022-0477

Indefinite hang with large buffers on Windows in crypto/rand

Quick fix

GO-2022-0477 — stdlib: upgrade to the fixed version with the command below.

go get stdlib@v1.17.11

Details

On Windows, rand.Read will hang indefinitely if passed a buffer larger than 1 << 32 - 1 bytes.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/stdlib
Introduced in: 0Fixed in: 1.17.11
Fixgo get stdlib@v1.17.11

References