diff options
author | Caleb Connolly <caleb.connolly@linaro.org> | 2021-11-02 18:56:21 +0000 |
---|---|---|
committer | Caleb Connolly <caleb.connolly@linaro.org> | 2021-11-02 21:51:32 +0000 |
commit | b49414ea5da073042aab753a4fd9fd05fa5bb8d5 (patch) | |
tree | 6f7b782f0dfc64b5c5b0cf37c7983988015fb19d /BUILD | |
parent | 9109c94f269102785c606bd6c211b52fbbcd822d (diff) |
mixer: fix index underflow when index=0
In mixer_get_ctl_by_name_and_index(), the post-fix decrement
means that the index will be decremented after the comparison, but
before the return, leading to an unsigned integer underflow.
This causes a crash on platforms with -fsanitize=integer enabled.
Fix this by avoiding decrementing index until after the return.
Change-Id: I25a17ced4185bdebd500285bd30b342b16b4ac12
Diffstat (limited to 'BUILD')
0 files changed, 0 insertions, 0 deletions