commit | 9068391105fb6409a72b8746c914e4e528a536b4 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | Fri Dec 06 05:41:53 2024 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Dec 06 05:41:53 2024 +0000 |
tree | 6264edaf5f87938dceedc4d4e6d2e952dea16d7b | |
parent | 7051e5bcbd110590c3f7b825eeb8c071f6fbaa21 [diff] | |
parent | 18e7ac746722210b35dfd7e64541b9361c7856d5 [diff] |
Merge "installd_service_fuzzer: Add signal() to handle SIGPIPE" into main am: cf0a7edb95 am: 18e7ac7467 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3382172 Change-Id: I5f6bb9a74f3687ed463d971a4a21502a42928c93 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/cmds/installd/tests/fuzzers/InstalldServiceFuzzer.cpp b/cmds/installd/tests/fuzzers/InstalldServiceFuzzer.cpp index b1c6940..50ea0c7 100644 --- a/cmds/installd/tests/fuzzers/InstalldServiceFuzzer.cpp +++ b/cmds/installd/tests/fuzzers/InstalldServiceFuzzer.cpp
@@ -47,6 +47,8 @@ } // 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;