mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Fix segfault when invalid TLV is passed
Fix segfault when invalid TLV is passed. The invalid TLV entries must be ignored as error.
This commit is contained in:
parent
4165a5bfd1
commit
66f3749cab
1 changed files with 1 additions and 1 deletions
|
|
@ -1022,7 +1022,7 @@ static int parse_db_range(struct selem_str *rec, unsigned int *tlv,
|
|||
default:
|
||||
break;
|
||||
}
|
||||
return 1; /* not found */
|
||||
return -EINVAL; /* not found */
|
||||
}
|
||||
|
||||
/* convert the given raw volume value to a dB gain
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue