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: user-feedback comment guard #1020

Merged
merged 2 commits into from
Jul 24, 2024
Merged

Conversation

supervacuus
Copy link
Collaborator

A recent review regarding strlen() usage revealed an invalid guard for the user-feedback comments parameter:

size_t comments_len = email ? strlen(comments) : 0;

A unit test didn't cover this, and my review also failed to see it. So, this is a good trigger for adding corresponding test cases, providing an inline function that guards strlen(), and introducing it to the codebase from which future contributors can adapt.

@supervacuus supervacuus merged commit 7e00527 into master Jul 24, 2024
21 checks passed
@supervacuus supervacuus deleted the fix/userfeedback_comment_guard branch July 24, 2024 21:30
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