From e5070a69f19d49991df59db13b3c843cb272ec3e Mon Sep 17 00:00:00 2001 From: Sabaun Taraki Date: Mon, 2 Oct 2023 18:09:22 +0300 Subject: [PATCH] Adjust syscalls amount --- utils/node-loader/src/utils.rs | 6 +++--- utils/runtime-fuzzer/src/gear_calls.rs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/utils/node-loader/src/utils.rs b/utils/node-loader/src/utils.rs index 9bbde01eb9e..c9f99f99e9f 100644 --- a/utils/node-loader/src/utils.rs +++ b/utils/node-loader/src/utils.rs @@ -219,10 +219,10 @@ pub fn get_wasm_gen_config( (SysCallName::Leave, 0..=0), (SysCallName::Panic, 0..=0), (SysCallName::OomPanic, 0..=0), - (SysCallName::Send, 2..=3), + (SysCallName::Send, 10..=15), (SysCallName::Exit, 0..=1), - (SysCallName::Alloc, 1..=3), - (SysCallName::Free, 1..=3), + (SysCallName::Alloc, 3..=6), + (SysCallName::Free, 3..=6), ] .map(|(sys_call, range)| (InvocableSysCall::Loose(sys_call), range)) .into_iter(), diff --git a/utils/runtime-fuzzer/src/gear_calls.rs b/utils/runtime-fuzzer/src/gear_calls.rs index 784324d2188..239b9e51ba6 100644 --- a/utils/runtime-fuzzer/src/gear_calls.rs +++ b/utils/runtime-fuzzer/src/gear_calls.rs @@ -411,10 +411,10 @@ fn config( (SysCallName::Leave, 0..=0), (SysCallName::Panic, 0..=0), (SysCallName::OomPanic, 0..=0), - (SysCallName::Send, 3..=4), + (SysCallName::Send, 10..=15), (SysCallName::Exit, 0..=1), - (SysCallName::Alloc, 1..=3), - (SysCallName::Free, 1..=3), + (SysCallName::Alloc, 3..=6), + (SysCallName::Free, 3..=6), ] .map(|(sys_call, range)| (InvocableSysCall::Loose(sys_call), range)) .into_iter(),