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

Commit 65510e07 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "audiopolicy_fuzzer: Bug fix" into main

parents 2a47120b 1b35d8bb
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -185,11 +185,7 @@ std::vector<uint32_t> kSamplingRates = {8000, 16000, 44100, 48000, 88200, 96000}

template <typename T>
T getValueFromVector(FuzzedDataProvider *fdp, std::vector<T> arr) {
    if (fdp->ConsumeBool()) {
    return arr[fdp->ConsumeIntegralInRange<int32_t>(0, arr.size() - 1)];
    } else {
        return (T)fdp->ConsumeIntegral<uint32_t>();
    }
}

class AudioPolicyManagerFuzzer {