You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
Seems like func (bigEndian) PutUint32(b []byte, v uint32) works with byte slices, but inside it requires this slice be at least 4 elements in size.
So, this signature allow me to put empty slice here and have panic because there is no checks inside.
I propose to change this []byte to [4]byte to make this misleading signature more demanding.
The text was updated successfully, but these errors were encountered:
Hello!
Seems like
func (bigEndian) PutUint32(b []byte, v uint32)
works with byte slices, but inside it requires this slice be at least 4 elements in size.So, this signature allow me to put empty slice here and have panic because there is no checks inside.
I propose to change this []byte to [4]byte to make this misleading signature more demanding.
The text was updated successfully, but these errors were encountered: