Skip to content

Commit cf0a7ed

Browse files
Treehugger RobotGerrit Code Review
authored andcommitted
Merge "installd_service_fuzzer: Add signal() to handle SIGPIPE" into main
2 parents 8389f57 + 8ef956a commit cf0a7ed

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cmds/installd/tests/fuzzers/InstalldServiceFuzzer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ bool force_compile_without_image() {
4747
} // namespace android
4848

4949
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
50+
// TODO(b/183141167): need to rewrite 'dump' to avoid SIGPIPE.
51+
signal(SIGPIPE, SIG_IGN);
5052
auto service = sp<InstalldNativeService>::make();
5153
fuzzService(service, FuzzedDataProvider(data, size));
5254
return 0;

0 commit comments

Comments
 (0)