mlot / nanopb

Automatically exported from code.google.com/p/nanopb
zlib License
0 stars 0 forks source link

Submessages inside oneof fields are not properly initialized #149

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create message with oneof containing a submessage with static array.
2. Fill the message structure with random data.
3. Decode message containing the submessage.
4. Decoder errors out with "array overflow" message.

What is the expected output? What do you see instead?
Decoder should initialize the submessage fields to defaults.

Original issue reported on code.google.com by Petteri.Aimonen on 7 Mar 2015 at 8:29

GoogleCodeExporter commented 9 years ago
This issue was updated by revision ef422656a57b.

Original comment by Petteri.Aimonen on 7 Mar 2015 at 8:30