)]}'
{
  "commit": "97b1496b261e2d6ffb41bec8ff09dd466e827747",
  "tree": "a681c0b63f76436fecb32a09305fd337a3c7dc24",
  "parents": [
    "49f6821ecf46f6cda70006c0f8ff4032e31192b1"
  ],
  "author": {
    "name": "Protobuf Team Bot",
    "email": "protobuf-github-bot@google.com",
    "time": "Fri Nov 20 13:10:02 2026 -0800"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Fri Nov 20 13:14:05 2026 -0800"
  },
  "message": "Decrement `e-\u003edepth` in `encode_msgset_item()` so canonical and non-canonical `MessageSet` items count toward `upb_EncodeOptions_MaxDepth` (and `kUpb_WireFormat_DefaultDepthLimit`), matching `encode_scalar()` and preventing unbounded C stack recursion on deeply nested or cyclic `MessageSet` graphs. Also skip `ext_val.msg_val \u003d\u003d NULL` in `encode_msgset_item()`, matching `encode_scalar()`.\n\nThis matches behavior in Decode, which already counts MessageSet against depth limit.\n\nStrictly speaking, this changes observable `upb_Encode()` behavior: messages whose nesting depth previously stayed within the limit only because `MessageSet` items were uncharged now return `kUpb_EncodeStatus_MaxDepthExceeded`. I think this is fine, considering the alternative fails to protect against stack exhaustion.\n\nPiperOrigin-RevId: 1026700629\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "9efd48f386c8ffcc7da393bec0fd2c4927b3f468",
      "old_mode": 33188,
      "old_path": "upb/wire/encode_test.cc",
      "new_id": "f64fdd6a089fcd009986b3ae88fa43816c2b0fa5",
      "new_mode": 33188,
      "new_path": "upb/wire/encode_test.cc"
    },
    {
      "type": "modify",
      "old_id": "19e4191a0820c90e61a93f9a8a925b6bdf29d934",
      "old_mode": 33188,
      "old_path": "upb/wire/encode_test.proto",
      "new_id": "f99e16d9dcf2fb09532fcd8bddbfcd824f48fdf3",
      "new_mode": 33188,
      "new_path": "upb/wire/encode_test.proto"
    },
    {
      "type": "modify",
      "old_id": "ab4fc036db665785e01bffbfcfde527b04fc8583",
      "old_mode": 33188,
      "old_path": "upb/wire/internal/encoder.c",
      "new_id": "9d9bb2cd9c9bafcb6e04c7b835000df9071626e5",
      "new_mode": 33188,
      "new_path": "upb/wire/internal/encoder.c"
    }
  ]
}
