You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the important features of Protocol Buffers is the ability to extend
messages later without breaking compatibility. This requires the decoder to be
able to skip any unknown fields.
Currently protobuf-embedded-c does skip unknown tags, but does not skip the
contents of those unknown fields. This causes the contents to be parsed as
data, which will cause all sorts of crashes.
I suggest adding a default case in the big switch(tag), and use the wire type
to skip the field contents there.
(This problem is not so important to me personally, I just ran into it when
benchmarking nanopb vs. protobuf-embedded-c and thought I would report it.)
Original issue reported on code.google.com by Petteri.Aimonen on 3 Feb 2013 at 4:19
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
Petteri.Aimonen
on 3 Feb 2013 at 4:19The text was updated successfully, but these errors were encountered: