diff options
| author | Zeke Lu <lvzecai@gmail.com> | 2022-09-13 18:05:53 +0000 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-10-06 14:46:33 +0000 |
| commit | 9dfadf911d2dcb093c3a37c79869bead0f9f6349 (patch) | |
| tree | 6488801d1ef06ab51d41fc9aa42151d2bd9f6d81 /src/os/exec/exec_test.go | |
| parent | af668c689c66588f8adb9f5cd6db812706536338 (diff) | |
| download | go-9dfadf911d2dcb093c3a37c79869bead0f9f6349.tar.xz | |
debug/buildinfo: correct a typo in calculating next align index
When it calculates the smallest n such that:
n >= i && n % buildInfoAlign == 0
the expression should be
(i+buildInfoAlign-1)&^(buildInfoAlign-1)
instead of
(i+buildInfoAlign-1)&^buildInfoAlign
Fixes #54968.
Change-Id: Ibb7bdf568a521545b2609acc85e2ab4e05da5dae
GitHub-Last-Rev: 479ebc140af9809f0bea039e643cb95b4f857614
GitHub-Pull-Request: golang/go#54971
Reviewed-on: https://go-review.googlesource.com/c/go/+/429815
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
Diffstat (limited to 'src/os/exec/exec_test.go')
0 files changed, 0 insertions, 0 deletions
