aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2015-01-30 14:36:12 +0300
committerDmitry Vyukov <dvyukov@google.com>2015-01-30 12:01:31 +0000
commit3c3848ad92bac9edce2ec1e510c01f9bf2317ea3 (patch)
tree3f0294723e4dbc5074a9803e157a8eaf7bdf254e /include
parent256116ad2564b10c18750633dce047fd92d57bc7 (diff)
downloadgo-3c3848ad92bac9edce2ec1e510c01f9bf2317ea3.tar.xz
runtime: fix system memory allocator on plan9
The following line in sysFree: n += (n + memRound) &^ memRound doubles value of n (n += n). Which is wrong and can lead to memory corruption. Fixes #9712 Change-Id: I3c141b71da11e38837c09408cf4f1d22e8f7f36e Reviewed-on: https://go-review.googlesource.com/3602 Reviewed-by: David du Colombier <0intro@gmail.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions