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

Commit da612e70 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "fix potential read null pointer" am: 48584672 am: e2728c64 am: 43d0c0df am: 937c37c7

parents f9df427a 937c37c7
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1447,6 +1447,10 @@ bool objcpy(C2FrameData* d, const FrameData& s,
bool objcpy(C2BaseBlock* d, const BaseBlock& s) {
    switch (s.getDiscriminator()) {
    case BaseBlock::hidl_discriminator::nativeBlock: {
            if (s.nativeBlock() == nullptr) {
                LOG(ERROR) << "Null BaseBlock::nativeBlock handle";
                return false;
            }
            native_handle_t* sHandle =
                    native_handle_clone(s.nativeBlock());
            if (sHandle == nullptr) {