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: miss on encoder validate invalid value checking #58

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

muktihari
Copy link
Owner

@muktihari muktihari commented Dec 21, 2023

In previous test, we did not check the size of the fields after validation and it turned out that value like int, uint and struct{} was silently skipped making it a false-negative. We should have returned an error to user but we kept encoding the FIT file with missing those message's fields.

@muktihari muktihari added the bug Something isn't working label Dec 21, 2023
@muktihari muktihari self-assigned this Dec 21, 2023
@muktihari muktihari changed the title fix: miss on encoder invalid value checking fix: miss on encoder validate invalid value checking Dec 21, 2023
@muktihari muktihari merged commit f7323e8 into master Dec 21, 2023
1 check passed
@muktihari muktihari deleted the fix/encoder-validator branch December 21, 2023 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant