)]}'
{
  "commit": "4d6233f9dbf7a5975f572b593ada6c0b8279fc81",
  "tree": "42cd0226c0cbfdfb043d5c6ab643ffa135f04f2e",
  "parents": [
    "04ffb440044a69abe031f2d77b8cddf577ef7dc5"
  ],
  "author": {
    "name": "QUICHE team",
    "email": "quiche-dev@google.com",
    "time": "Wed Nov 25 07:31:46 2026 -0800"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Wed Nov 25 07:32:45 2026 -0800"
  },
  "message": "Fix 32 bit shift overflow in QuicPacketCreator.\n\n`QuicPacketCreator::SerializeLargePacketNumberConnectionClosePacket`\nuses `(1L \u003c\u003c 31)` to offset the packet number. On platforms with a\n32 bit `long`, shifting into the sign bit overflows and sign extends\nto `0xFFFFFFFF80000000` in `uint64_t`. The wire header carries only\nthe low 4 bytes of the packet number, while AEAD encryption uses all\n8 bytes in the nonce. When the peer reconstructs the packet number\nfrom the 4 byte header, the upper 4 bytes differ and AEAD decryption\nfails.\n\nUse `(UINT64_C(1) \u003c\u003c 31)` so the offset is unsigned 64 bit on all\nplatforms.\n\nPiperOrigin-RevId: 1029916769\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b34674cecae48380d0ebddc5199a7e18f3f850cd",
      "old_mode": 33188,
      "old_path": "quiche/quic/core/quic_packet_creator.cc",
      "new_id": "ea05ad1a2d5b33c42685ddf0a6a0fa6ae15232d9",
      "new_mode": 33188,
      "new_path": "quiche/quic/core/quic_packet_creator.cc"
    },
    {
      "type": "modify",
      "old_id": "106c4dd137cd488326744d1bff6e2f9f49427ac8",
      "old_mode": 33188,
      "old_path": "quiche/quic/core/quic_packet_creator_test.cc",
      "new_id": "a1ccc2d5eab42166070b97dc6e6101989bad24cd",
      "new_mode": 33188,
      "new_path": "quiche/quic/core/quic_packet_creator_test.cc"
    }
  ]
}
