Language: Go
Label: safe
CWE: CWE-1284 \u2014 Improper Validation of Specified Quantity in Input
The product receives input that is expected to specify a quantity (such as size or length), but it does not validate or incorrectly validates that the quantity has the required properties.

Code:
func FuzzFromBytes(f *testing.F) {
	f.Fuzz(func(_ *testing.T, size int, bytes []byte) {
		if size > 1<<20 { // We relly on consumers for limit checks, hopefully they understand that a New... factory allocates memory.
			return
		}
		FromBytes(size, bytes)
	})
}