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

protobuf OctetLength should be deserialized as octet_length, not length #1834

Merged
merged 1 commit into from
Feb 15, 2022

Conversation

carols10cents
Copy link
Contributor

Which issue does this PR close?

Closes #1833.

Rationale for this change

This seems wrong.

What changes are included in this PR?

Deserializing OctetLength as octet_length instead of length.

Are there any user-facing changes?

Deserializing should be correct, if OctetLength is used?

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Certainly looks like an oversight to me

cc @thinkharderdev @yahoNanJing, @realno @Ted-Jiang

@alamb
Copy link
Contributor

alamb commented Feb 14, 2022

Thank you @carols10cents

@realno
Copy link
Contributor

realno commented Feb 14, 2022

Thanks for the fix!

@houqp houqp merged commit d79ca16 into apache:master Feb 15, 2022
@houqp
Copy link
Member

houqp commented Feb 15, 2022

Thanks @carols10cents

@houqp houqp added the bug Something isn't working label Feb 15, 2022
@carols10cents carols10cents deleted the length-fix branch February 17, 2022 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OctetLength in protobuf is getting deserialized to length, not octet_length
4 participants