Skip to content
Snippets Groups Projects
Commit 3c10e6fa authored by Kent Ryhorchuk's avatar Kent Ryhorchuk Committed by Petteri Aimonen
Browse files

Check for empty message type before incrementing required_field_index.

If you have a message that defined as empty, but attempt to decode a
message that has one or more unknown fields then pb_decode fails. The
method used to count the number of required fields counts 1 required
field because the default type of PB_LAST_FIELD is PB_HTYPE_REQUIRED.
parent a01856f4
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment