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

Commit 7053ae7d authored by Steven Moreland's avatar Steven Moreland
Browse files

libbinder: readString*Inplace SafetyNet

Should log when this happens, since it never should.

Bug: 172655291
Test: boot
Change-Id: Id75560189688c7d563872f346ddef3a73401679c
parent 51e02b16
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;
        }
    }