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

Commit 33f0363e authored by Jeff Tinker's avatar Jeff Tinker
Browse files

Fix NULL pointer dereference issues in CryptoHal::toSharedBuffer

bug:111636206
test: gts media tests
Change-Id: Ia3b664ccff554000084438f74e004a82c69a20da
parent 2ddd17ca
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -301,7 +301,7 @@ status_t CryptoHal::toSharedBuffer(const sp<IMemory>& memory, int32_t seqNum, ::
    ssize_t offset;
    size_t size;

    if (memory == NULL && buffer == NULL) {
    if (memory == NULL || buffer == NULL) {
        return UNEXPECTED_NULL;
    }