)]}'
{
  "commit": "70fb50a413950046bc173a582fec0debd08c9313",
  "tree": "a3a8342d55a282bc8c086e73459b73d8781a6930",
  "parents": [
    "9517176b8702ff1eae2077041c844c4d59dd8371"
  ],
  "author": {
    "name": "Jingning Han",
    "email": "jingning@google.com",
    "time": "Mon Nov 09 14:03:12 2026 -0800"
  },
  "committer": {
    "name": "Jingning Han",
    "email": "jingning@google.com",
    "time": "Mon Nov 09 16:07:30 2026 -0800"
  },
  "message": "Fix integer overflow when computing set_avg_64x64\n\nFix the following UBSan error by declaring avg_64x64 as int64_t\ninstead of int, and computing set_avg_64x64 in int64_t:\n\nav1/encoder/var_based_part.c:1887:34: runtime error:\nsigned integer overflow: 9 * 471859200 cannot be represented in type\n\u0027int\u0027\n\nOn key frames, the 4x4 averages are compared against a fixed dst_avg\nof 128 even for high bit depth input, and the samples outside the\nframe boundary contribute zero. This makes the variance of the 64x64\nblocks that straddle the frame edge very large for 12-bit input, and\nthe sum of up to four such variances times 9 overflows int.\n\nTested: test_libaom --gtest_filter\u003dEncodeAPI.Avg64x64IntegerOverflow\n\nBug: b:580524406\nChange-Id: Id537dc1e107e711c15b0e5af1f7f6a5bb92344ad\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "24b367ff8fbe6c0b7f41e3f07cc502cf7fd67a0e",
      "old_mode": 33188,
      "old_path": "av1/encoder/var_based_part.c",
      "new_id": "a25d6ce03aa3b2a8f175aa95fb19d716eb35eaf6",
      "new_mode": 33188,
      "new_path": "av1/encoder/var_based_part.c"
    },
    {
      "type": "modify",
      "old_id": "651e4bcdfc73caae13dc1bcef0acc26e008e5ff4",
      "old_mode": 33188,
      "old_path": "test/encode_api_test.cc",
      "new_id": "8332b1407211ab6b696bbf503cdc2110cc0355e8",
      "new_mode": 33188,
      "new_path": "test/encode_api_test.cc"
    }
  ]
}
