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

Commit 0e686542 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" am: 97fca8c0

am: 0bae9b14

Change-Id: I0eb29e3e80243a958aa2520924ea9ad859034cdf
parents b7067e2b 0bae9b14
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -382,7 +382,7 @@ static void JHwBlob_native_putString(
    s = nullptr;

    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);
    blob->write(offset, &tmp, sizeof(tmp));