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:
parent
c38c91ddbd
commit
026b74e25d
@ -1002,6 +1002,8 @@ LaunchControlXL::filter_stripables(StripableList& strips) const
|
||||
FilterFunction flt;
|
||||
|
||||
switch ((int)template_number()) {
|
||||
default:
|
||||
/* FALLTHROUGH */
|
||||
case 8:
|
||||
flt = &flt_default;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user