1
0
mirror of https://github.com/golang/go synced 2024-11-19 00:44:40 -07:00

cmd/internal/goobj: fix the size of Header

Missed the length of the Fingerprint field.

Change-Id: I690955466895e73821dc1e30f8400efc30338ae6
GitHub-Last-Rev: 87bd06d805
GitHub-Pull-Request: golang/go#62174
Reviewed-on: https://go-review.googlesource.com/c/go/+/521495
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
This commit is contained in:
mstmdev 2023-08-21 09:04:07 +00:00 committed by Gopher Robot
parent 7497ccb9b4
commit f0b05092fd

View File

@ -244,7 +244,7 @@ func (h *Header) Read(r *Reader) error {
}
func (h *Header) Size() int {
return len(h.Magic) + 4 + 4*len(h.Offsets)
return len(h.Magic) + len(h.Fingerprint) + 4 + 4*len(h.Offsets)
}
// Autolib