diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2021-02-19 12:52:30 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2021-02-19 15:46:09 +0100 |
| commit | f689d40a08ae1c9d73d043e7a2e807bc4022931b (patch) | |
| tree | ea6cfcb52b4dc895265c4e8a660d78d71619a62d /executor/executor.cc | |
| parent | 14052202e8d8d0bb407512b6861e9085f9171241 (diff) | |
executor: don't fail in syz_genetlink_get_family_id
We used to use our own netlink socket and then fail
on any errors. But commit "sys/linux: add ieee802154 descriptions"
made it possible to use fuzzer-provided socket,
and fuzzer can pass any invalid fd.
So don't fail on errors now.
Fixes #2444
Diffstat (limited to 'executor/executor.cc')
| -rw-r--r-- | executor/executor.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/executor/executor.cc b/executor/executor.cc index 71e3e7b71..5bb2d7226 100644 --- a/executor/executor.cc +++ b/executor/executor.cc @@ -1543,11 +1543,13 @@ void debug(const char* msg, ...) { if (!flag_debug) return; + int err = errno; va_list args; va_start(args, msg); vfprintf(stderr, msg, args); va_end(args); fflush(stderr); + errno = err; } void debug_dump_data(const char* data, int length) |
