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

Commit 390cd6ce authored by Andreas Huber's avatar Andreas Huber Committed by android-build-merger
Browse files

Merge "Fixes Treble marshaling of strings embedded in structures from Java"...

Merge "Fixes Treble marshaling of strings embedded in structures from Java" am: 97fca8c0 am: 0bae9b14
am: 0e686542

Change-Id: I145b206fc2af5dee4271b94640476507a49f7dbd
parents 537eaf0f 0e686542
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -382,7 +382,7 @@ static void JHwBlob_native_putString(
    s = nullptr;
    s = nullptr;


    hidl_string tmp;
    hidl_string tmp;
    tmp.setToExternal(static_cast<const char *>(subBlob->data()), size);
    tmp.setToExternal(static_cast<const char *>(subBlob->data()), size - 1);


    sp<JHwBlob> blob = JHwBlob::GetNativeContext(env, thiz);
    sp<JHwBlob> blob = JHwBlob::GetNativeContext(env, thiz);
    blob->write(offset, &tmp, sizeof(tmp));
    blob->write(offset, &tmp, sizeof(tmp));