Skip to content

smp: reject duplicate STM short link updates#1802

Open
pbottine wants to merge 1 commit into
simplex-chat:stablefrom
pbottine:ptp/stable-fix-issue-3-stm-link-uniqueness
Open

smp: reject duplicate STM short link updates#1802
pbottine wants to merge 1 commit into
simplex-chat:stablefrom
pbottine:ptp/stable-fix-issue-3-stm-link-uniqueness

Conversation

@pbottine

@pbottine pbottine commented Jun 8, 2026

Copy link
Copy Markdown

Summary

  • Reject STM LSET attempts that claim a LinkId already mapped to a different recipient queue.
  • Keep same-queue link updates working.
  • Add a regression that creates a victim short link, attempts to attach that link id to a separate authenticated queue, and verifies the victim link still resolves to the victim data.

Tests

  • git diff --check origin/stable..HEAD
  • cabal test simplexmq-test --extra-include-dirs=/opt/homebrew/opt/openssl@3/include --extra-lib-dirs=/opt/homebrew/opt/openssl@3/lib --test-option=--match --test-option='rejects attaching an existing short link to another queue'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant