Skip to content

Commit 3e0442f

Browse files
committed
cmd/compile: rename libfuzzerCallTraceInit
1 parent 28781ec commit 3e0442f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/runtime/libfuzzer.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ package runtime
88

99
import "unsafe"
1010

11-
func libfuzzerCallTraceInit(fn, start, end *byte)
11+
func libfuzzerCallWithTwoByteBuffers(fn, start, end *byte)
1212
func libfuzzerCall(fn *byte, arg0, arg1 uintptr)
1313

1414
func libfuzzerTraceCmp1(arg0, arg1 uint8) {
@@ -46,7 +46,7 @@ func libfuzzerTraceConstCmp8(arg0, arg1 uint64) {
4646
var pcTables []byte
4747

4848
func libfuzzerInitializeCounters() {
49-
libfuzzerCallTraceInit(&__sanitizer_cov_8bit_counters_init, &__start___sancov_cntrs, &__stop___sancov_cntrs)
49+
libfuzzerCallWithTwoByteBuffers(&__sanitizer_cov_8bit_counters_init, &__start___sancov_cntrs, &__stop___sancov_cntrs)
5050
start := unsafe.Pointer(&__start___sancov_cntrs)
5151
end := unsafe.Pointer(&__stop___sancov_cntrs)
5252

@@ -56,7 +56,7 @@ func libfuzzerInitializeCounters() {
5656
// get a pointer representing the end of the PC table array.
5757
size := (uintptr(end)-uintptr(start))*unsafe.Sizeof(uintptr(0))*2 + 1
5858
pcTables = make([]byte, size)
59-
libfuzzerCallTraceInit(&__sanitizer_cov_pcs_init, &pcTables[0], &pcTables[size-1])
59+
libfuzzerCallWithTwoByteBuffers(&__sanitizer_cov_pcs_init, &pcTables[0], &pcTables[size-1])
6060
}
6161

6262
func init() {

src/runtime/libfuzzer_amd64.s

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ call:
4141
MOVQ R12, SP
4242
RET
4343

44-
// void runtime·libfuzzerCallTraceInit(fn, arg0, arg1 *byte)
45-
// Calls C function fn from libFuzzer and passes 2 arguments to it.
46-
TEXT runtime·libfuzzerCallTraceInit(SB), NOSPLIT, $0-24
44+
// void runtime·libfuzzerCallWithTwoByteBuffers(fn, arg0, arg1 *byte)
45+
// Calls C function fn from libFuzzer and passes 2 arguments of type *byte to it.
46+
TEXT runtime·libfuzzerCallWithTwoByteBuffers(SB), NOSPLIT, $0-24
4747
MOVQ fn+0(FP), AX
4848
MOVQ start+8(FP), RARG0
4949
MOVQ end+16(FP), RARG1

0 commit comments

Comments
 (0)