ikrabbe / plan9front

Automatically exported from code.google.com/p/plan9front
0 stars 0 forks source link

calloc has an integer-overflow bug #150

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The main reason for anyone to use the calloc function is so that they can avoid 
integer-overflow bugs without having to duplicate the ‘will this 
multiplication overflow?’ check all over the place.  But calloc doesn't 
prevent integer-overflow bugs.

Original issue reported on code.google.com by rransom....@gmail.com on 16 Aug 2012 at 1:25

GoogleCodeExporter commented 9 years ago
commited in r348d6d3bf57e

Original comment by cinap_le...@felloff.net on 19 Aug 2012 at 8:55