Fix for the 2026-10-25 host freeze (an uncaught iostream exception on a /proc read aborted the daemon; its core dump deadlocked with the exec guard): non-throwing /proc reads, crash handlers that release fanotify permission fds, guarded thread entries, from_chars parsing. Adds the io fault-injection seam with property tests, source invariant checks (R1-R6) with self-test fixtures, libFuzzer targets and seeds (including I/O-fault fuzzing), the fold changed-files scan scripts and the agent workflow docs (CLAUDE.md, prompts). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 lines
429 B
C++
12 lines
429 B
C++
// Status replies parsed by user-side clients (tray app, MCP).
|
|
#include "strawberry/scanner_health.hpp"
|
|
|
|
#include <cstdint>
|
|
#include <string>
|
|
|
|
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
|
|
const std::string text(reinterpret_cast<const char*>(data), size);
|
|
const auto snapshot = strawberry::snapshot_from_status_json(text);
|
|
(void) strawberry::scanner_problems(snapshot, 0);
|
|
return 0;
|
|
}
|