Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: segfault in chalk backup service #220

Merged
merged 1 commit into from Feb 27, 2024
Merged

fix: segfault in chalk backup service #220

merged 1 commit into from Feb 27, 2024

Conversation

miki725
Copy link
Contributor

@miki725 miki725 commented Feb 27, 2024

Issue

backup service bug in attestion.nim causes segfault

Description

the safeRequest refactor now creates and closes the client which wasnt correctly refactored and wasnt caught.

there are no tests for this and its not easy to add them as it will require adding JWTs in the mix. upcoming refactor for signing keys will refactor this and will make it easier to test this

Testing

➜ chalk load configs/connect.c4m
➜ rm *.{key,pub}; ./chalk setup --trace

the safeRequest refactor now creates and closes the client
which wasnt correctly refactored and wasnt caught.

there are no tests for this and its not easy to add them
as it will require adding JWTs in the mix. upcoming refactor
for signing keys will refactor this and will make it easier to
test this
Copy link
Contributor

@ee7 ee7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing the extra client.close() looks good to me.

src/attestation.nim Show resolved Hide resolved
@miki725 miki725 merged commit 42ea8ad into main Feb 27, 2024
2 checks passed
@miki725 miki725 deleted the ms/keys branch February 27, 2024 16:21
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.

None yet

2 participants