aboutsummaryrefslogtreecommitdiffstats
path: root/executor
diff options
context:
space:
mode:
Diffstat (limited to 'executor')
-rw-r--r--executor/common_linux.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/executor/common_linux.h b/executor/common_linux.h
index 76325ff6d..5d477a16a 100644
--- a/executor/common_linux.h
+++ b/executor/common_linux.h
@@ -5865,15 +5865,15 @@ static long syz_pidfd_open(volatile long pid, volatile long flags)
#include <unistd.h>
static long syz_kfuzztest_run(volatile long test_name_ptr, volatile long input_data,
- volatile long input_data_size)
+ volatile long input_data_size, volatile long buffer)
{
const char* test_name = (const char*)test_name_ptr;
if (!test_name) {
debug("syz_kfuzztest_run: test name was NULL\n");
return -1;
}
- if (!input_data || input_data_size == 0) {
- debug("syz_kfuzztest_run: input data was NULL\n");
+ if (!buffer) {
+ debug("syz_kfuzztest_run: buffer was NULL\n");
return -1;
}
@@ -5890,7 +5890,7 @@ static long syz_kfuzztest_run(volatile long test_name_ptr, volatile long input_d
return -1;
}
- ssize_t bytes_written = write(fd, (void*)input_data, (size_t)input_data_size);
+ ssize_t bytes_written = write(fd, (void*)buffer, (size_t)input_data_size);
if (bytes_written != input_data_size) {
debug("syz_kfuzztest_run: failed to write to %s, reason: %s\n", buf, strerror(errno));
close(fd);