Skip to content

Conversation

@ihciah
Copy link
Contributor

@ihciah ihciah commented Jul 1, 2021

Is there something wrong with the thrift strict header comparing?

The strict header highest bit should be 1, and as u8 in rust, maybe we should compare it to 0x80 which is 0x10000000.

I didn't submit the issue on apache jira because I was unable to reset my password. Sorry for that.

@Jens-G
Copy link
Member

Jens-G commented Nov 13, 2021

Good catch. What about if ((first_bytes[0] & 0x80) != 0) { ... ?

@ihciah
Copy link
Contributor Author

ihciah commented Nov 14, 2021

Good catch. What about if ((first_bytes[0] & 0x80) != 0) { ... ?

Indeed this way is better. I've rebased the code and rewritten the commit.

@Jens-G Jens-G merged commit 5f16344 into apache:master Jan 26, 2022
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