1
0
mirror of https://github.com/golang/go synced 2024-11-27 05:11:22 -07:00

cmd/internal/goobj: fix the size of Header

Missed the length of the Fingerprint field.
This commit is contained in:
mstmdev 2023-08-21 16:34:05 +08:00
parent e094e80f65
commit 87bd06d805

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