Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8186c636 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "gatekeeperd_service_fuzzer: Add signal() to handle SIGPIPE" into main

parents 43772f2b 8366faad
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -22,6 +22,8 @@ using android::fuzzService;
using android::GateKeeperProxy;

extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
    // TODO(b/183141167): need to rewrite 'dump' to avoid SIGPIPE.
    signal(SIGPIPE, SIG_IGN);
    auto gatekeeperService = new GateKeeperProxy();
    fuzzService(gatekeeperService, FuzzedDataProvider(data, size));
    return 0;