diff options
| author | Florent Revest <revest@chromium.org> | 2025-06-02 18:53:48 +0200 |
|---|---|---|
| committer | Taras Madan <tarasmadan@google.com> | 2025-06-04 08:08:03 +0000 |
| commit | e565f08d1cb546967f255601a17a0c958d06ce6d (patch) | |
| tree | 5befdb5cc94f0378a411fe5df49cab4d505105d1 /executor/common_linux.h | |
| parent | d1185f71a0ae0131a1dc76c72c8a176ee8045835 (diff) | |
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.
Diffstat (limited to 'executor/common_linux.h')
| -rw-r--r-- | executor/common_linux.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
