]> git.alsa-project.org Git - alsa-lib.git/commit
seq: Fix wrong seq version update at snd_seq_hw_get_client_info()
authorTakashi Iwai <tiwai@suse.de>
Sat, 26 Aug 2023 19:21:13 +0000 (21:21 +0200)
committerTakashi Iwai <tiwai@suse.de>
Sat, 26 Aug 2023 19:38:13 +0000 (21:38 +0200)
commitdc1e683cc2d2aaed938f9459605d51d4a2cb7ba0
treeff3acabe29f1fe35dda6152fa0db8b2fff7ee1b6
parent91bbe55894458a98a6f9f1d8aad6b237c7d22f3f
seq: Fix wrong seq version update at snd_seq_hw_get_client_info()

snd_seq_hw_get_client_info() calls mistakenly update_midi_version()
that leads to the update of seq->version from another client info.
It may lead to the inconsistent packet size calculation and the
unaligned read, eventually a program may hit segfault.

Drop the incorrect call of update_midi_version() for fixing it.

Fixes: 2aefb5c41cc0 ("seq: Add UMP support")
Closes: https://github.com/alsa-project/alsa-utils/issues/232
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/seq/seq_hw.c