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

Commit 8a839e74 authored by Jeff Tinker's avatar Jeff Tinker Committed by android-build-merger
Browse files

Merge "Fix NULL pointer dereference issues in CryptoHal::toSharedBuffer" into qt-dev am: 3aa95def

am: c8494f64

Change-Id: Iec32cce0d7a94c3b4f729364d2bc03cf1a68a378
parents 0a6b7215 c8494f64
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;
    }