- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for byteSliceOverwriteConstantBytes (0.38 sec)
-
src/internal/fuzz/mutators_byteslice_test.go
mutator: byteSliceInsertConstantBytes, input: append(make([]byte, 0, 8), []byte{1, 2, 3, 4}...), expected: []byte{3, 3, 3, 1, 2, 3, 4}, }, { name: "byteSliceOverwriteConstantBytes", mutator: byteSliceOverwriteConstantBytes, input: []byte{1, 2, 3, 4}, expected: []byte{3, 3, 3, 4}, }, { name: "byteSliceShuffleBytes", mutator: byteSliceShuffleBytes,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 19 18:23:43 UTC 2021 - 4.3K bytes - Viewed (0) -
src/internal/fuzz/mutators_byteslice.go
} b = b[:len(b)+n] copy(b[dst+n:], b[dst:]) rb := byte(m.rand(256)) for i := dst; i < dst+n; i++ { b[i] = rb } return b } // byteSliceOverwriteConstantBytes overwrites a chunk of b with constant bytes. func byteSliceOverwriteConstantBytes(m *mutator, b []byte) []byte { if len(b) <= 1 { return nil } dst := m.rand(len(b)) n := m.chooseLen(len(b) - dst) rb := byte(m.rand(256))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 19 18:23:43 UTC 2021 - 7.7K bytes - Viewed (0) -
src/internal/fuzz/mutator.go
byteSliceArithmeticUint32, byteSliceArithmeticUint64, byteSliceOverwriteInterestingUint8, byteSliceOverwriteInterestingUint16, byteSliceOverwriteInterestingUint32, byteSliceInsertConstantBytes, byteSliceOverwriteConstantBytes, byteSliceShuffleBytes, byteSliceSwapBytes, } func (m *mutator) mutateBytes(ptrB *[]byte) { b := *ptrB defer func() { if unsafe.SliceData(*ptrB) != unsafe.SliceData(b) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 20:01:34 UTC 2023 - 6.6K bytes - Viewed (0)