Improve a safety check when writing data into StatBuffer
authorAndi McClure <andi.mcclure@xamarin.com>
Wed, 30 Mar 2016 21:09:08 +0000 (17:09 -0400)
committerAndi McClure <andi.mcclure@xamarin.com>
Wed, 30 Mar 2016 21:09:08 +0000 (17:09 -0400)
commita80b7cc0a3d22dc13f29ddc4858092d998c43c18
tree3ca240f788fbcb218a329e24d23eb17645718431
parent1f47c6ed5c36483e8136ab14566aa208d5f15790
Improve a safety check when writing data into StatBuffer

The safety check should occur such that if the new value for
StatBuffer::cursor is beyond the bounds of the StatBuffer, the cursor
is not updated.
mono/profiler/proflog.c