[FIXED] Avoid nil deref on mirror state restore#7909
[FIXED] Avoid nil deref on mirror state restore#7909MauriceVanVeen wants to merge 1 commit intomainfrom
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d8eb3e67b5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
d8eb3e6 to
1fb9f1c
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1fb9f1c222
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
1fb9f1c to
0448cad
Compare
|
Need to add a test.. |
Signed-off-by: Maurice van Veen <github@mauricevanveen.com>
0448cad to
c0e8b40
Compare
|
Have repurposed this PR. It now only contains the mirror nil deref. |
|
@claude, brief review. |
|
Claude finished @MauriceVanVeen's task in 49s —— View job Brief ReviewReviewing: What the fix does
Looks correct. The pattern is consistent with how other post-unlock mirror accesses are already guarded in this file (e.g., A couple of observations:
Overall: minimal, safe, and matches existing defensive patterns in the file. LGTM pending a test. |
Guard
mset.mirroragainst nil when restoring sequence/lag state after a failed persist inprocessInboundMirrorMsg, preventing a potential nil deref if the mirror was removed concurrently.Signed-off-by: Maurice van Veen github@mauricevanveen.com