gitee.com/ks-custle/core-gm@v0.0.0-20230922171213-b83bdd97b62c/net/ipv6/control_test.go (about)

     1  // Copyright 2017 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package ipv6_test
     6  
     7  import (
     8  	"testing"
     9  
    10  	"gitee.com/ks-custle/core-gm/net/ipv6"
    11  )
    12  
    13  func TestControlMessageParseWithFuzz(t *testing.T) {
    14  	var cm ipv6.ControlMessage
    15  	for _, fuzz := range []string{
    16  		"\f\x00\x00\x00)\x00\x00\x00.\x00\x00\x00",
    17  		"\f\x00\x00\x00)\x00\x00\x00,\x00\x00\x00",
    18  	} {
    19  		cm.Parse([]byte(fuzz))
    20  	}
    21  }