switch_slot_session released the slot lock while set_session_id ran and then re-acquired it to write active_session_id, with no check that the slot still belonged to the same activation. A deactivation or re-activation in that window put the old session id onto the new occupant's snapshot, and persist_session_identity then copied it into that profile's sticky session. Capture the generation alongside the client in the first critical section and compare before writing. The write-back is extracted into commit_session_id so the invariant can be tested directly rather than raced. Refs: F-17 (audit P2-1). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| capabilities | ||
| icons | ||
| src | ||
| tests | ||
| build.rs | ||
| Cargo.toml | ||
| tauri.conf.json | ||