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

Commit d4931081 authored by Sarup Dalwani's avatar Sarup Dalwani
Browse files

Returning the default instead of abort() to unblock fuzzer.

Bug: 243463593
Test: No manual testing, fuzzer would conduct the test.
Change-Id: Iffcc6181fe95edd547d0919f648f4f0e6b305a73
parent d4d9daa4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -97,7 +97,7 @@ uint16_t MtpPacket::getUInt16(int offset) const {
    }
    else {
        ALOGE("offset for buffer read is greater than buffer size!");
        abort();
        return 0;
    }
}

@@ -108,7 +108,7 @@ uint32_t MtpPacket::getUInt32(int offset) const {
    }
    else {
        ALOGE("offset for buffer read is greater than buffer size!");
        abort();
        return 0;
    }
}