From 3eee41957d8a2d9908519c798f30d5ccc90c53fb Mon Sep 17 00:00:00 2001 From: Mateusz Poliwczak Date: Thu, 2 Jan 2025 18:53:28 +0100 Subject: [PATCH] internal/exportdata: add missing return Change-Id: I4c4b6f038193933a42988837fc2e385f8b6df980 --- src/internal/exportdata/exportdata.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/internal/exportdata/exportdata.go b/src/internal/exportdata/exportdata.go index 27675923b5..861a47f49f 100644 --- a/src/internal/exportdata/exportdata.go +++ b/src/internal/exportdata/exportdata.go @@ -85,6 +85,7 @@ func ReadUnified(r *bufio.Reader) (data []byte, err error) { if n < 0 { err = fmt.Errorf("invalid size (%d) in the archive file: %d bytes remain without section headers (recompile package)", size, n) + return } // Read n bytes from buf.