Skip to content

fix: Time-of-check Time-of-use bug in session management#1375

Merged
ghislainbourgeois merged 1 commit into
mainfrom
fix-toctou
Jun 1, 2026
Merged

fix: Time-of-check Time-of-use bug in session management#1375
ghislainbourgeois merged 1 commit into
mainfrom
fix-toctou

Conversation

@ghislainbourgeois

Copy link
Copy Markdown
Collaborator

Description

This fixes an time-of-check/time-of-use bug in session management, that could potentially lead to a double-free on IP addresses. It was very unlikely to be triggered, and the tests to cover this would be too complex, so I did not add them.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that validate the behaviour of the software
  • I validated that new and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@ghislainbourgeois
ghislainbourgeois force-pushed the fix-toctou branch 4 times, most recently from 7060001 to 376ca31 Compare June 1, 2026 19:15
@ghislainbourgeois
ghislainbourgeois merged commit 988c619 into main Jun 1, 2026
36 checks passed
@ghislainbourgeois
ghislainbourgeois deleted the fix-toctou branch June 1, 2026 20:07
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