diff options
| author | Keith Randall <khr@golang.org> | 2017-08-17 23:13:57 -0700 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2017-08-18 14:52:25 +0000 |
| commit | 77871cc664b3a87e4972c874369e2ade79038d76 (patch) | |
| tree | 01ae1d256d8ad0c5b5903a2c403dee817047b6fd /src/bytes/buffer.go | |
| parent | a93753401db052f3192103e2c4d4c547d740b41f (diff) | |
| download | go-77871cc664b3a87e4972c874369e2ade79038d76.tar.xz | |
runtime: no need to protect key/value increments against end of bucket
After the key and value arrays, we have an overflow pointer.
So there's no way a past-the-end key or value pointer could point
past the end of the containing bucket.
So we don't need this additional protection.
Update #21459
Change-Id: I7726140033b06b187f7a7d566b3af8cdcaeab0b0
Reviewed-on: https://go-review.googlesource.com/56772
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Martin Möhrmann <moehrmann@google.com>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Avelino <t@avelino.xxx>
Diffstat (limited to 'src/bytes/buffer.go')
0 files changed, 0 insertions, 0 deletions
