]> Cypherpunks repositories - gostls13.git/commit
runtime: fix off-by-1 error on address ranges
authorCherry Zhang <cherryyz@google.com>
Thu, 12 Dec 2019 21:41:24 +0000 (16:41 -0500)
committerCherry Zhang <cherryyz@google.com>
Fri, 13 Dec 2019 17:18:15 +0000 (17:18 +0000)
commit1475b9709013db2c1bb25583729529db1e549312
tree6a84fccafb732650b9c12482e84d09318b79a4ae
parent0497f911acbb33efbeac7271dc46e920fe26f4b8
runtime: fix off-by-1 error on address ranges

When growing the address ranges, the new length is the old length + 1.

Fixes #36113.

Change-Id: I1b425f78e473cfa3cbdfe6113e166663f41fc9f3
Reviewed-on: https://go-review.googlesource.com/c/go/+/211157
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/mpagealloc_test.go
src/runtime/mranges.go