iamandi / nanopb

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

Check for multiplication overflows in dynamic allocation code #117

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Some places in the dynamic allocation code multiply the element size by the 
element count. This multiplication could potentially overflow, causing too 
little amount of memory to be allocated and consequently writing past buffer 
size.

Original issue reported on code.google.com by Petteri.Aimonen on 17 May 2014 at 6:19

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

Original comment by Petteri.Aimonen on 17 May 2014 at 5:16

GoogleCodeExporter commented 9 years ago
Fix released in nanopb-0.2.8

Original comment by Petteri.Aimonen on 20 May 2014 at 4:55