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

Commit 398f3df9 authored by Steven Moreland's avatar Steven Moreland Committed by Automerger Merge Worker
Browse files

libbinder: check null bytes in readString*Inplace am: 58f5cfa5 am: 776ca083

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/13144867

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia86880c02c7e3322e26f26d0815bcd59e6606864
parents 2d5e05b4 776ca083
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1881,7 +1881,7 @@ const char* Parcel::readString8Inplace(size_t* outLen) const
    if (size >= 0 && size < INT32_MAX) {
        *outLen = size;
        const char* str = (const char*)readInplace(size+1);
        if (str != nullptr) {
        if (str != nullptr && str[size] == '\0') {
            return str;
        }
    }
@@ -1941,7 +1941,7 @@ const char16_t* Parcel::readString16Inplace(size_t* outLen) const
    if (size >= 0 && size < INT32_MAX) {
        *outLen = size;
        const char16_t* str = (const char16_t*)readInplace((size+1)*sizeof(char16_t));
        if (str != nullptr) {
        if (str != nullptr && str[size] == u'\0') {
            return str;
        }
    }