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

Commit 7aa36b35 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "audio: usb: fix buffer overflow issue"

parents 479bb9c2 8c05a3c2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -395,6 +395,7 @@ static int get_usb_service_interval(const char *interval_str_start,
        return -1;
    }
    memcpy(tmp, interval_str_start, eol-interval_str_start);
    tmp[eol-interval_str_start] = '\0';
    sscanf(tmp, "%lu %2s", &interval, &time_unit[0]);
    if (!strcmp(time_unit, "us")) {
        multiplier = 1;