Skip to content

Commit e565f08

Browse files
FlorentRevesttarasmadan
authored andcommitted
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.
1 parent d1185f7 commit e565f08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

executor/common_linux.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2412,7 +2412,7 @@ static long syz_open_dev(volatile long a0, volatile long a1, volatile long a2)
24122412
sprintf(buf, "/dev/%s/%d:%d", a0 == 0xc ? "char" : "block", (uint8)a1, (uint8)a2);
24132413
return open(buf, O_RDWR, 0);
24142414
} else {
2415-
// syz_open_dev(dev ptr[in, string["/dev/foo"]], id intptr, flags flags[open_flags]) fd
2415+
// syz_open_dev(dev ptr[in, string["/dev/foo#"]], id intptr, flags flags[open_flags]) fd
24162416
unsigned long nb = a1;
24172417
char buf[1024];
24182418
char* hash;

0 commit comments

Comments
 (0)