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

daemon/notify: sanity check state entries #126

Merged
merged 1 commit into from
Dec 15, 2022

Conversation

lucab
Copy link
Owner

@lucab lucab commented Dec 12, 2022

This performs some basic sanity checks against notify-state entries.
Notably, it checks lenght and content of FDNAME labels.

Closes: #116

@lucab
Copy link
Owner Author

lucab commented Dec 12, 2022

@janderholm could you please have a look at this new logic?

@lucab lucab force-pushed the ups/daemon-notify-validate-fdname branch from 3a0451a to 6fc1e4c Compare December 14, 2022 09:26
@lucab lucab requested a review from swsnr December 14, 2022 09:59
@lucab
Copy link
Owner Author

lucab commented Dec 14, 2022

@swsnr this one is now ready for review.

Copy link
Collaborator

@swsnr swsnr left a comment

Choose a reason for hiding this comment

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

I think the error message could be slightly improved, but other than that looks good.

src/daemon.rs Outdated Show resolved Hide resolved
src/daemon.rs Show resolved Hide resolved
This performs some basic sanity checks against notify-state entries.
Notably, it checks length and content of `FDNAME` labels.
@lucab lucab force-pushed the ups/daemon-notify-validate-fdname branch from 6fc1e4c to cc8b31c Compare December 15, 2022 11:04
@lucab lucab merged commit 2de3b5c into master Dec 15, 2022
@lucab lucab deleted the ups/daemon-notify-validate-fdname branch December 16, 2022 09: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.

NotifyState::Fdname uses String, but FDNAME does not support UTF-8
2 participants