Skip to content

fix: nil pointer dereference in handleStopWorkload#507

Merged
joeriddles merged 6 commits intomainfrom
fix-panic
Mar 25, 2026
Merged

fix: nil pointer dereference in handleStopWorkload#507
joeriddles merged 6 commits intomainfrom
fix-panic

Conversation

@joeriddles
Copy link
Copy Markdown
Contributor

When RequestMany returned an error, the return statement was inside the inner error check instead of the outer one, causing execution to fall through and call the nil msgs callback.

When RequestMany returned an error, the return statement was inside the
inner error check instead of the outer one, causing execution to fall
through and call the nil msgs callback.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Signed-off-by: Joe Riddle <joe@synadia.com>
@joeriddles joeriddles requested a review from a team as a code owner March 24, 2026 22:01
Use cmd.Wait() instead of cmd.Process.Wait() to ensure I/O pipe-copying
goroutines complete before returning, preventing a race between the exec
package's internal goroutine writing to the logger buffer and test code
reading it.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Signed-off-by: Joe Riddle <joe@synadia.com>
@joeriddles joeriddles changed the title fix nil pointer dereference in handleStopWorkload fix: nil pointer dereference in handleStopWorkload Mar 24, 2026
@joeriddles joeriddles changed the title fix: nil pointer dereference in handleStopWorkload fix: nil pointer dereference in handleStopWorkload Mar 24, 2026
@joeriddles joeriddles requested a review from jordan-rash March 24, 2026 22:22
jordan-rash
jordan-rash previously approved these changes Mar 24, 2026
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Signed-off-by: Joe Riddle <joe@synadia.com>
Signed-off-by: Joe Riddle <joe@synadia.com>
jordan-rash
jordan-rash previously approved these changes Mar 25, 2026
@joeriddles joeriddles merged commit 2652aba into main Mar 25, 2026
5 checks passed
@joeriddles joeriddles deleted the fix-panic branch March 25, 2026 15:35
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.

2 participants