extend the check for the runtime ptr size

This commit is contained in:
lionsoul2014 2026-08-01 08:51:32 +08:00
parent d5e3616d8e
commit c0d85cc71d
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ type Header struct {
} }
func NewHeader(input []byte) (*Header, error) { func NewHeader(input []byte) (*Header, error) {
if len(input) < 16 { if len(input) < 20 {
return nil, fmt.Errorf("invalid input buffer") return nil, fmt.Errorf("invalid input buffer")
} }