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

Field number encodings #11

Closed

Conversation

stevemohapibanks
Copy link
Contributor

Ensured field numbers are encoded are varints, as field numbers >= 16 were causing a buffer overflow error

@@ -14,7 +14,8 @@ module Beefcake
end

def append_info(fn, wire)
self << ((fn << 3) | wire)
#self << ((fn << 3) | wire)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mind removing this in this commit if it's no longer needed? I can pull in after. -b

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@bmizerany
Copy link
Contributor

Thank you so much! I've release beefcake 0.3.6 with this fix.

@bmizerany bmizerany closed this Sep 11, 2011
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.

None yet

2 participants