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

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

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

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I38ad7b4e9721041dd2dd8f791030bfc0d40b8670
parents 49db5015 58f5cfa5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1869,7 +1869,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;
        }
    }
@@ -1929,7 +1929,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;
        }
    }