mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
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
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue