aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strlcpy-src.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2022-08-26 18:01:10 +0300
committerTakashi Iwai <[email protected]>2022-08-26 17:17:22 +0200
commit5934d9a0383619c14df91af8fd76261dc3de2f5f (patch)
treed535353780bd0183b938b19dd0d62fa454a59e7b /lib/test_fortify/write_overflow-strlcpy-src.c
parent6ab55ec0a938c7f943a4edba3d6514f775983887 (diff)
ALSA: control: Re-order bounds checking in get_ctl_id_hash()
These two checks are in the reverse order so it might read one element beyond the end of the array. First check if the "i" is within bounds before using it. Fixes: 6ab55ec0a938 ("ALSA: control: Fix an out-of-bounds bug in get_ctl_id_hash()") Signed-off-by: Dan Carpenter <[email protected]> Link: https://lore.kernel.org/r/YwjgNh/gkG1hH7po@kili Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions