aakash-sahai / nanopb

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

Encoder should respect string max_size #68

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If a string in a structure is not properly 0-terminated, the encoder will 
continue until it hits some random 0-byte in the memory.

Instead, the encoder should check the allocated max_size for the string and 
stop at that point.

Original issue reported on code.google.com by Petteri.Aimonen on 20 Mar 2013 at 7:09

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

Original comment by Petteri.Aimonen on 14 Apr 2013 at 6:50

GoogleCodeExporter commented 9 years ago
Fix released in 0.2.1

Original comment by Petteri.Aimonen on 14 Apr 2013 at 7:19