diff --git a/frame_test.go b/frame_test.go
index <HASH>..<HASH> 100644
--- a/frame_test.go
+++ b/frame_test.go
@@ -28,13 +28,12 @@ func TestFuzzBugs(t *testing.T) {
 		var bw bytes.Buffer
 
 		r := bytes.NewReader(test)
-
-		head, err := readHeader(r, make([]byte, 8))
+		head, err := readHeader(r, make([]byte, 9))
 		if err != nil {
 			continue
 		}
 
-		framer := newFramer(r, &bw, nil, 2)
+		framer := newFramer(r, &bw, nil, byte(head.version))
 		err = framer.readFrame(&head)
 		if err != nil {
 			continue
diff --git a/fuzz.go b/fuzz.go
index <HASH>..<HASH> 100644
--- a/fuzz.go
+++ b/fuzz.go
@@ -14,7 +14,7 @@ func Fuzz(data []byte) int {
 		return 0
 	}
 
-	framer := newFramer(r, &bw, nil, 3)
+	framer := newFramer(r, &bw, nil, byte(head.version))
 	err = framer.readFrame(&head)
 	if err != nil {
 		return 0
use the version from the read header version when parsing the frames for fuzzing