[profiler] Fix a number of potential buffer overflows.
authorAlex Rønne Petersen <alexrp@xamarin.com>
Tue, 7 Jul 2015 10:51:55 +0000 (12:51 +0200)
committerAlex Rønne Petersen <alexrp@xamarin.com>
Sat, 11 Jul 2015 09:52:36 +0000 (11:52 +0200)
commit4ce4b7621a5d049cc48897e61404132a6ad111eb
treeafbe6d4fecb209ad70aa4b795eec57c57b0dcd84
parentd3752a5496204111a09cdf10cb7954b043f30ca8
[profiler] Fix a number of potential buffer overflows.

In many cases, we allocated less than we actually needed in the worst case. We
now spell out the size of each field in an event to make it less likely that
such mistakes are made in the future.
mono/profiler/proflog.c