-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
BUG: Suspecting a bug in checking binary fields length #141
Comments
Please explain the difference in the code here for context :) |
this.Msg[field] - string in hex format In this code, each byte is formed by combining two characters of hex. However, I believe the comparison this_format.MaxLen === this.Msg[field].length is incorrect.
Could you please check this and let me know if it is correct? If it looks good, I will proceed with raising a pull request. |
Any updates on this? |
I see your point. While I investigate, Happy to review a PR, Lets see how it works with the tests. |
When we check the length of a binary field, we compare the binary length directly with the length of the incoming value, which is in hex.
This should be
Let me know if any further details necessary
The text was updated successfully, but these errors were encountered: