summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2024-12-06 04:43:29 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2024-12-06 04:43:29 +0000
commitcf0a7edb95e8ae2dbfa878af3714ff1fb39ad338 (patch)
tree0c4123c75f94a360fa79738bd61777529a6e6390
parent8389f57b45e0a5131c6638891971dad19f4bb1ba (diff)
parent8ef956a6f2fe4d8c43920923f8e7f708d115bca6 (diff)
Merge "installd_service_fuzzer: Add signal() to handle SIGPIPE" into main
-rw-r--r--cmds/installd/tests/fuzzers/InstalldServiceFuzzer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmds/installd/tests/fuzzers/InstalldServiceFuzzer.cpp b/cmds/installd/tests/fuzzers/InstalldServiceFuzzer.cpp
index b1c6940207..50ea0c7e44 100644
--- a/cmds/installd/tests/fuzzers/InstalldServiceFuzzer.cpp
+++ b/cmds/installd/tests/fuzzers/InstalldServiceFuzzer.cpp
@@ -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;