diff options
author | Kent Ryhorchuk <kryhorchuk@xeralux.com> | 2013-07-15 18:04:47 -0700 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2013-07-16 11:07:48 +0300 |
commit | 3c10e6fa71cbee85c540c0702a5a95333cd3be32 (patch) | |
tree | 0d8109027fabca48d393a533ec1006fdecae57c0 /docs | |
parent | a01856f4ab7f51f129dda7387acca8a63d039105 (diff) |
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.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions