From fa8fd63eb30ac043c61dc47899964a1fe94d3090 Mon Sep 17 00:00:00 2001 From: "Dongjia \"toka\" Zhang" Date: Thu, 22 May 2025 18:14:16 +0200 Subject: [PATCH] Fix heartbeat (#3262) * Update fastbloom requirement from 0.9.0 to 0.10.0 --- updated-dependencies: - dependency-name: fastbloom dependency-version: 0.9.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] * manual upd * dfasf * put it back * more * fixer * ci --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/build_and_test.yml | 6 ++++++ libafl/src/events/broker_hooks/mod.rs | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 38be8cb5b8..a5ee0577ce 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -570,6 +570,8 @@ jobs: run: rustup target add arm-linux-androideabi && rustup target add thumbv6m-none-eabi - uses: actions/checkout@v4 - uses: Swatinem/rust-cache@v2 + with: + shared-key: no-std - name: Build aarch64-unknown-none run: cd ./fuzzers/fuzz_anything/baby_no_std && cargo build -Zbuild-std=core,alloc --target aarch64-unknown-none -v --release && cd ../.. - name: run x86_64 until panic! @@ -587,6 +589,8 @@ jobs: run: rustup target add arm-linux-androideabi && rustup target add thumbv6m-none-eabi - uses: actions/checkout@v4 - uses: Swatinem/rust-cache@v2 + with: + shared-key: no-std - name: libafl armv6m-none-eabi (32 bit no_std) clippy run: cd ./libafl && cargo clippy --target thumbv6m-none-eabi --no-default-features - name: Build no_std no_alloc bolts @@ -733,6 +737,8 @@ jobs: - uses: actions/checkout@v4 - uses: ./.github/workflows/windows-tester-prepare - uses: Swatinem/rust-cache@v2 + with: + shared-key: windows-clippy - name: Run real clippy, not the fake one shell: pwsh run: .\scripts\clippy.ps1 diff --git a/libafl/src/events/broker_hooks/mod.rs b/libafl/src/events/broker_hooks/mod.rs index 9fa6757c82..6d41749add 100644 --- a/libafl/src/events/broker_hooks/mod.rs +++ b/libafl/src/events/broker_hooks/mod.rs @@ -147,7 +147,10 @@ where monitor.display(client_stats_manager, event.name(), id)?; Ok(BrokerEventResult::Forward) } - Event::Heartbeat => Ok(BrokerEventResult::Handled), + Event::Heartbeat => { + monitor.display(client_stats_manager, event.name(), client_id)?; + Ok(BrokerEventResult::Handled) + } Event::UpdateUserStats { name, value, .. } => { client_stats_manager.client_stats_insert(client_id)?; client_stats_manager.update_client_stats_for(client_id, |client_stat| {