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

Commit ef6e4076 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix variable scope to prevent use-after-free"

parents 7bd0dcb3 20dc8a62
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -182,8 +182,9 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
    AMediaFormat* mediaFormat = AMediaFormat_new();
    while (fdp.remaining_bytes()) {
        const char* name = nullptr;
        std::string nameString;
        if (fdp.ConsumeBool()) {
            std::string nameString =
            nameString =
                    fdp.ConsumeBool()
                            ? fdp.PickValueInArray(kValidKeys)
                            : fdp.ConsumeRandomLengthString(