mirror of
https://github.com/reactos/syzkaller.git
synced 2025-02-12 06:50:31 +00:00
executor: don't fallthrough in switches in fuchsia (#1103)
This commit modifies the common_fuchsia.h file changing the behavior of the `syz_future_time function`. Before, the function used to have a switch case that would fallthrough, making it always set the delta_ms to 10000. The fix is to add a `break;` statement after each switch case.
This commit is contained in:
parent
ce4e53939e
commit
8658c25622
@ -226,10 +226,13 @@ static long syz_future_time(volatile long when)
|
||||
switch (when) {
|
||||
case 0:
|
||||
delta_ms = 5;
|
||||
break;
|
||||
case 1:
|
||||
delta_ms = 30;
|
||||
break;
|
||||
default:
|
||||
delta_ms = 10000;
|
||||
break;
|
||||
}
|
||||
zx_time_t now = zx_clock_get(ZX_CLOCK_MONOTONIC);
|
||||
return now + delta_ms * 1000 * 1000;
|
||||
|
@ -969,10 +969,13 @@ static long syz_future_time(volatile long when)
|
||||
switch (when) {
|
||||
case 0:
|
||||
delta_ms = 5;
|
||||
break;
|
||||
case 1:
|
||||
delta_ms = 30;
|
||||
break;
|
||||
default:
|
||||
delta_ms = 10000;
|
||||
break;
|
||||
}
|
||||
zx_time_t now = zx_clock_get(ZX_CLOCK_MONOTONIC);
|
||||
return now + delta_ms * 1000 * 1000;
|
||||
|
Loading…
x
Reference in New Issue
Block a user