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

Commit c6dbb160 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "libbinder: readString*Inplace SafetyNet"

parents 4a1d020d 7053ae7d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2056,6 +2056,7 @@ const char* Parcel::readString8Inplace(size_t* outLen) const
        *outLen = size;
        const char* str = (const char*)readInplace(size+1);
        if (str != nullptr && str[size] == '\0') {
            android_errorWriteLog(0x534e4554, "172655291");
            return str;
        }
    }
@@ -2139,6 +2140,7 @@ const char16_t* Parcel::readString16Inplace(size_t* outLen) const
        *outLen = size;
        const char16_t* str = (const char16_t*)readInplace((size+1)*sizeof(char16_t));
        if (str != nullptr && str[size] == u'\0') {
            android_errorWriteLog(0x534e4554, "172655291");
            return str;
        }
    }