)]}'
{
  "commit": "6371897510bd2c4f5225890f05a8b9aebf4d5577",
  "tree": "c75f22b9b425ef3d1936f0bb024fca4ce5e5a2fe",
  "parents": [
    "5f168e0d8121259f009b955f608caa7b05ad37f4"
  ],
  "author": {
    "name": "Evan Brown CA",
    "email": "ezb@google.com",
    "time": "Tue Nov 17 08:58:25 2026 -0800"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Tue Nov 17 14:54:58 2026 -0800"
  },
  "message": "Fix use-after-destroy on self-move-assign and self-swap of SOO tables.\n\nFor 1-element SOO tables with !PolicyTraits::transfer_uses_memcpy(), both self-move-assignment and self-swap invoked PolicyTraits::transfer() on an already-destroyed inline slot when `this \u003d\u003d \u0026that`:\n\n- In raw_hash_set::assign_impl(), destructor_impl() calls DestructSoo(), which destroys soo_data() without clearing inline_data_ so that.is_full_soo() remains true, causing the subsequent move_common() call to transfer the destroyed soo_data() slot onto itself and run its destructor a second time.\n\n- In raw_hash_set::swap_common(), the first move_common() call transfers that.soo_data() into tmp and destroys this-\u003esoo_data() while move_non_heap_or_soo_fields() leaves this-\u003einline_data_ unchanged, causing the second move_common() call to transfer the destroyed this-\u003esoo_data() slot onto itself.\n\nScope both aliasing checks strictly to `SooEnabled() \u0026\u0026 !PolicyTraits::transfer_uses_memcpy()` via `if constexpr`: in assign_impl(), suppress `that_is_full_soo` when `this \u003d\u003d \u0026that`, and in swap_common(), take the direct `swap(common(), that.common())` fast path for `!SooEnabled() || PolicyTraits::transfer_uses_memcpy()` and guard against `this \u003d\u003d \u0026that` only in the full-SOO non-memcpy branch.\n\nPiperOrigin-RevId: 1023785469\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "94bbfd19b707844d5ca35f0f75377f95b271cb77",
      "old_mode": 33188,
      "old_path": "absl/container/internal/raw_hash_set.h",
      "new_id": "6257b948c64ea830d969f5bc1b8c4aad17487233",
      "new_mode": 33188,
      "new_path": "absl/container/internal/raw_hash_set.h"
    },
    {
      "type": "modify",
      "old_id": "e0a6cb15aca0a8a6f473c7dd6c614825091dd495",
      "old_mode": 33188,
      "old_path": "absl/container/internal/raw_hash_set_test.cc",
      "new_id": "379bd0e171711fbf03aaa2e14fe9de9c752a7eb6",
      "new_mode": 33188,
      "new_path": "absl/container/internal/raw_hash_set_test.cc"
    }
  ]
}
