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

Commit 18e7ac74 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "installd_service_fuzzer: Add signal() to handle SIGPIPE" into main am: cf0a7edb

parents a9f27dae cf0a7edb
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -47,6 +47,8 @@ bool force_compile_without_image() {
} // namespace android

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 service = sp<InstalldNativeService>::make();
    fuzzService(service, FuzzedDataProvider(data, size));
    return 0;