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

Make sure to mask when casting byte to short in receiveBytes() #27

Merged
merged 1 commit into from
Dec 11, 2013
Merged

Make sure to mask when casting byte to short in receiveBytes() #27

merged 1 commit into from
Dec 11, 2013

Conversation

klali
Copy link
Contributor

@klali klali commented Dec 11, 2013

fix an issue where lc > 0x80 the sign byte is promoted to the short len in receiveBytes()

licel added a commit that referenced this pull request Dec 11, 2013
Make sure to mask when casting byte to short in receiveBytes()
@licel licel merged commit d2e781d into licel:master Dec 11, 2013
licel added a commit that referenced this pull request Apr 15, 2016
Make sure to mask when casting byte to short in receiveBytes()
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