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

handling 0 Packet Identifier in MIDs #147

Merged
merged 2 commits into from
Aug 8, 2023

Conversation

tomatod
Copy link
Contributor

@tomatod tomatod commented Jul 27, 2023

This is related to #145 .

To avoid panic, handling 0 Packet Identifier although it is invalid (valid range is 1 - 65535).

@MattBrittan
Copy link
Contributor

Any chance that you could add a test? (I provided a very rough one in the issue). I believe that MIDs is going to change further (see existing issues etc) so having a test for this situation would be beneficial in preventing the reintroduction of this problem.

@tomatod tomatod force-pushed the handle-zero-packetidentifier branch from d3698b1 to 346800c Compare July 30, 2023 03:30
@tomatod tomatod force-pushed the handle-zero-packetidentifier branch from 346800c to 22afd86 Compare July 30, 2023 03:34
@tomatod
Copy link
Contributor Author

tomatod commented Jul 30, 2023

@MattBrittan
Thank you for comments. I added some tests for MIDs.Get() and Free()

@MattBrittan MattBrittan merged commit aa5f102 into eclipse:master Aug 8, 2023
@tomatod tomatod deleted the handle-zero-packetidentifier branch February 18, 2024 07:16
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