13
0

Fix potential call of uninitialized pointer function

_template_number can be set via sysex to an arbitrary number, this
can lead to calling a filter-function at an undefined address, usually
a segfault.
This commit is contained in:
Robin Gareus 2019-08-21 03:51:23 +02:00
parent c38c91ddbd
commit 026b74e25d
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -1002,6 +1002,8 @@ LaunchControlXL::filter_stripables(StripableList& strips) const
FilterFunction flt;
switch ((int)template_number()) {
default:
/* FALLTHROUGH */
case 8:
flt = &flt_default;
break;