From e565f08d1cb546967f255601a17a0c958d06ce6d Mon Sep 17 00:00:00 2001 From: Florent Revest Date: Mon, 2 Jun 2025 18:53:48 +0200 Subject: executor: linux: make syz_open_dev comment more correct The logic in that branch of the code relies on replacing # characters with numbers. There's a comment in the code which shows a clarifying example but it misses the # which I found mildly confusing. --- executor/common_linux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'executor') diff --git a/executor/common_linux.h b/executor/common_linux.h index 3b1411098..f9d23ad29 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -2412,7 +2412,7 @@ static long syz_open_dev(volatile long a0, volatile long a1, volatile long a2) sprintf(buf, "/dev/%s/%d:%d", a0 == 0xc ? "char" : "block", (uint8)a1, (uint8)a2); return open(buf, O_RDWR, 0); } else { - // syz_open_dev(dev ptr[in, string["/dev/foo"]], id intptr, flags flags[open_flags]) fd + // syz_open_dev(dev ptr[in, string["/dev/foo#"]], id intptr, flags flags[open_flags]) fd unsigned long nb = a1; char buf[1024]; char* hash; -- cgit mrf-deployment