)]}'
{
  "commit": "bb1f4416180511231de6d17a1f2f55c82aafc863",
  "tree": "d7adc9404c0ccab25c7f3683e5dbe045400522c8",
  "parents": [
    "7c74b0db8a27188d0ca3bb2f4bd46d00c0dc8eea"
  ],
  "author": {
    "name": "Roland Shoemaker",
    "email": "roland@golang.org",
    "time": "Mon Apr 25 19:02:35 2022 -0700"
  },
  "committer": {
    "name": "Roland Shoemaker",
    "email": "roland@golang.org",
    "time": "Thu May 05 22:44:02 2022 +0000"
  },
  "message": "crypto/rand: properly handle large Read on windows\n\nUse the batched reader to chunk large Read calls on windows to a max of\n1 \u003c\u003c 31 - 1 bytes. This prevents an infinite loop when trying to read\nmore than 1 \u003c\u003c 32 -1 bytes, due to how RtlGenRandom works.\n\nThis change moves the batched function from rand_unix.go to rand.go,\nsince it is now needed for both windows and unix implementations.\n\nFixes #52561\n\nChange-Id: Id98fc4b1427e5cb2132762a445b2aed646a37473\nReviewed-on: https://go-review.googlesource.com/c/go/+/402257\nRun-TryBot: Roland Shoemaker \u003croland@golang.org\u003e\nReviewed-by: Filippo Valsorda \u003cfilippo@golang.org\u003e\nReviewed-by: Filippo Valsorda \u003cvalsorda@google.com\u003e\nTryBot-Result: Gopher Robot \u003cgobot@golang.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b6248a443874df146ac71757fbdeed19660ed66c",
      "old_mode": 33188,
      "old_path": "src/crypto/rand/rand.go",
      "new_id": "af85b966df6e43fe35964b3b79c61fb415ab4e46",
      "new_mode": 33188,
      "new_path": "src/crypto/rand/rand.go"
    },
    {
      "type": "modify",
      "old_id": "dfb9517d5e0a26ff101d1ba282b626f188fc7aca",
      "old_mode": 33188,
      "old_path": "src/crypto/rand/rand_batched_test.go",
      "new_id": "89953776a89ac69e718b0b62c79b6a58d98af1cf",
      "new_mode": 33188,
      "new_path": "src/crypto/rand/rand_batched_test.go"
    },
    {
      "type": "modify",
      "old_id": "87ba9e3af7aaa8bf601fab3f997d54e5beef794b",
      "old_mode": 33188,
      "old_path": "src/crypto/rand/rand_unix.go",
      "new_id": "64b865289d99fba7673a82e8bfb1dd70795ae019",
      "new_mode": 33188,
      "new_path": "src/crypto/rand/rand_unix.go"
    },
    {
      "type": "modify",
      "old_id": "7379f1489adbf13bb41598f56c745b9e03fccd6d",
      "old_mode": 33188,
      "old_path": "src/crypto/rand/rand_windows.go",
      "new_id": "6c0655c72b692ae444a85025ecc3d27d65107404",
      "new_mode": 33188,
      "new_path": "src/crypto/rand/rand_windows.go"
    }
  ]
}
