extend the check for the runtime ptr size
This commit is contained in:
parent
d5e3616d8e
commit
c0d85cc71d
|
|
@ -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")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue