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

Potential zero packet length error #129

Merged
merged 2 commits into from Feb 17, 2016
Merged

Potential zero packet length error #129

merged 2 commits into from Feb 17, 2016

Conversation

ghost
Copy link

@ghost ghost commented Feb 17, 2016

I don’t believe this can happen as core midi seems to follow the
following logic: a packet is only returned when there are at least 3
bytes and the read has timed out.

Clay Hansen added 2 commits February 17, 2016 11:51
I don’t believe this can happen as core midi seems to follow the
following logic: a packet is only returned when there are at least 3
bytes and the read has timed out.
I don’t believe this can happen as core midi seems to follow the
following logic: a packet is only returned when there are at least 3
bytes and the read has timed out.
@armadsen
Copy link
Member

To be clear here, the issue is that if a packet has a length of zero, MIDIPacketNext() isn't called, so remaining packets are skipped/missed.

armadsen added a commit that referenced this pull request Feb 17, 2016
@armadsen armadsen merged commit c4a9f63 into mixedinkey-opensource:master Feb 17, 2016
@armadsen
Copy link
Member

Thanks for the pull request!

@ghost
Copy link
Author

ghost commented Feb 17, 2016

Agreed

On 17/02/2016, at 2:37 PM, Andrew Madsen [email protected] wrote:

To be clear here, the issue is that if a packet has a length of zero, MIDIPacketNext() isn't called, so remaining packets are skipped/missed.


Reply to this email directly or view it on GitHub #129 (comment).

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.

1 participant