)]}'
{
  "commit": "37c2ceb737cb40377346c63a05f407da1c119ba0",
  "tree": "69efd7065e81348fd22f8fbc07ec475846e8a111",
  "parents": [
    "dda80547b10d698784713eb62a04f6f42eae107b"
  ],
  "author": {
    "name": "Yuxuan \u0027fishy\u0027 Wang",
    "email": "yuxuan.wang@reddit.com",
    "time": "Thu Dec 10 14:42:37 2020 -0800"
  },
  "committer": {
    "name": "Yuxuan \u0027fishy\u0027 Wang",
    "email": "fishywang@gmail.com",
    "time": "Wed Dec 16 09:31:18 2020 -0800"
  },
  "message": "THRIFT-5322: Guard against large string/binary lengths in Go\n\nClient: go\n\nIn TBinaryProtocol.ReadString, TBinaryProtocol.ReadBinary,\nTCompactProtocol.ReadString, and TCompactProtocol.ReadBinary, use\nsafeReadBytes to prevent from large allocation on malformed sizes.\n\n    $ go test -bench\u003dSafeReadBytes -benchmem\n    BenchmarkSafeReadBytes/normal-12                  625057              1789 ns/op            2176 B/op          5 allocs/op\n    BenchmarkSafeReadBytes/max-askedSize-12           545271              2236 ns/op           14464 B/op          7 allocs/op\n    PASS\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "c87d23a1bb152858e62025ade67fe39c620b86e4",
      "old_mode": 33188,
      "old_path": "lib/go/thrift/binary_protocol.go",
      "new_id": "58956f6732030c882893d4766f6be8791f827591",
      "new_mode": 33188,
      "new_path": "lib/go/thrift/binary_protocol.go"
    },
    {
      "type": "modify",
      "old_id": "0462cc79deead19a3082b6282e807ca18c7cbb86",
      "old_mode": 33188,
      "old_path": "lib/go/thrift/binary_protocol_test.go",
      "new_id": "88bfd26b7ea76bc34cddf162c99f31067c6c6b15",
      "new_mode": 33188,
      "new_path": "lib/go/thrift/binary_protocol_test.go"
    },
    {
      "type": "modify",
      "old_id": "a0161959c8c79d649ea398f809a86ac28bcb228f",
      "old_mode": 33188,
      "old_path": "lib/go/thrift/compact_protocol.go",
      "new_id": "424906d616beae31e884cb246cc8a2a74d579e71",
      "new_mode": 33188,
      "new_path": "lib/go/thrift/compact_protocol.go"
    }
  ]
}
