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

Commit 5e311b67 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Audio : Fix ASAN crash in VTS test cases"

parents 1725fdde b76f5abd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -228,10 +228,10 @@ class EffectHelper {
     */
    template <typename S, typename = std::enable_if_t<std::is_arithmetic_v<S>>>
    static std::set<S> expandTestValueBasic(std::set<S>& s) {
        const auto min = *s.begin(), max = *s.rbegin();
        const auto minLimit = std::numeric_limits<S>::min(),
                   maxLimit = std::numeric_limits<S>::max();
        if (s.size()) {
            const auto min = *s.begin(), max = *s.rbegin();
            s.insert(min + (max - min) / 2);
            if (min != minLimit) {
                s.insert(min - 1);