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

Commit 38f87422 authored by Harsh Abichandani's avatar Harsh Abichandani
Browse files

binder_recordedTransactionFuzz: Bug Fix

Resolved Abort due to failure in exchanging ownership of file descriptor

exec/s: 18157
Test: ./binder_recordedTransactionFuzz clusterfuzz-testcase-minimized-binder_recordedTransactionFuzz-4903117441073152
Bug: 274240951

Change-Id: Ie6c28bfb41b62b022253b8df9d1d496e557334f0
parent 0d0326fd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {

    if (transaction.has_value()) {
        std::FILE* intermediateFile = std::tmpfile();
        android::base::unique_fd fdForWriting(fileno(intermediateFile));
        android::base::unique_fd fdForWriting(dup(fileno(intermediateFile)));
        auto writeStatus ATTRIBUTE_UNUSED = transaction.value().dumpToFile(fdForWriting);

        std::fclose(intermediateFile);