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