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

Commit e18700a0 authored by Wonsik Kim's avatar Wonsik Kim
Browse files

stagefright/foundation: clear type in AMessage::allocateItem

This avoid freeing garbage in setItem.

Bug: 79493409
Test: atest CtsMediaTestCases:DecoderTest
Change-Id: I685e6c13a2b6354cae436ce7a7778ea3fc0d5de0
parent cd182409
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -197,6 +197,7 @@ AMessage::Item *AMessage::allocateItem(const char *name) {
        CHECK(mNumItems < kMaxNumItems);
        i = mNumItems++;
        item = &mItems[i];
        item->mType = kTypeInt32;
        item->setName(name, len);
    }