)]}'
{
  "commit": "d0b1853308a190488cf75c3dca51e7c549a558ba",
  "tree": "57cf8f5391926e417fbffa7148d8cf6643fea4a3",
  "parents": [
    "0974f72de028f38e6f6a1578996c2bf8a87c69ac"
  ],
  "author": {
    "name": "Sameer Agarwal",
    "email": "sameeragarwal@google.com",
    "time": "Thu Dec 03 14:55:56 2026 -0800"
  },
  "committer": {
    "name": "Sameer Agarwal",
    "email": "sameeragarwal@google.com",
    "time": "Fri Dec 04 06:00:11 2026 -0800"
  },
  "message": "Fix 32-bit overflow in Jacobian size checks\n\nBlockJacobianWriter and CompressedRowJacobianWriter both computed\nnum_residuals * TangentSize() in 32-bit int and accumulated entry\ncounts in 32-bit unsigned int before checking against INT_MAX.\n\nIn BlockJacobianWriter::BuildJacobianLayout, count both E-block\nand total entries in int64_t during the first pass and reject\nJacobians over INT_MAX before allocating layout storage. Once the\nfirst pass succeeds, the second pass stays entirely in int.\n\nIn CompressedRowJacobianWriter::CreateJacobian, accumulate\nnum_jacobian_nonzeros in int64_t.\n\nUpdate evaluator_test to:\n- Exceed INT_MAX total entries using 10,000 blocks of size 500x500\n  (avoiding a 32-bit overflow in Program::MaxDerivativesPerResidualBlock)\n  and cover all-F, split E+F, and all-E overflow in BlockJacobianWriter.\n- Test a single 46341x46345 block directly on both Jacobian writers so\n  the 64-bit per-block product check stays covered under UBSan.\n\nChange-Id: I4fbb774d6605c315abc79b351a5c1fee61ddcd63\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "01946dd2242e68ada3fcd2dd9c2b023473db5049",
      "old_mode": 33188,
      "old_path": "internal/ceres/block_jacobian_writer.cc",
      "new_id": "51ae32196e24b1eeedb497d7637f7a701493a896",
      "new_mode": 33188,
      "new_path": "internal/ceres/block_jacobian_writer.cc"
    },
    {
      "type": "modify",
      "old_id": "95076b7eb561cc2c9dab24a6859e99b7fb5f4870",
      "old_mode": 33188,
      "old_path": "internal/ceres/compressed_row_jacobian_writer.cc",
      "new_id": "776775fbba6825deb109be1acf86fff59c53819b",
      "new_mode": 33188,
      "new_path": "internal/ceres/compressed_row_jacobian_writer.cc"
    },
    {
      "type": "modify",
      "old_id": "12e717d5095fd1aafbcb9e69a5e976bc1687b811",
      "old_mode": 33188,
      "old_path": "internal/ceres/evaluator_test.cc",
      "new_id": "85f8b2c8754e6ff2b50e210abc4c40c087654f23",
      "new_mode": 33188,
      "new_path": "internal/ceres/evaluator_test.cc"
    }
  ]
}
