Browse Source

fix alsa device name constraint struct allocation

The bug was present in the inital version of the code,
commit ebba58c8ee

There was no memory corruption because while
jack_driver_param_value_enum_t is smaller by 72 bytes than
jack_driver_param_constraint_desc_t, for enum constraints,
the last 240 (on 64bit) bytes are not used.
tags/v1.9.10
Nedko Arnaudov 11 years ago
parent
commit
2567e09c34
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      linux/alsa/JackAlsaDriver.cpp

+ 1
- 1
linux/alsa/JackAlsaDriver.cpp View File

@@ -543,7 +543,7 @@ fill_device(

if (*constraint_ptr_ptr == NULL)
{
*constraint_ptr_ptr = (jack_driver_param_constraint_desc_t *)calloc(1, sizeof(jack_driver_param_value_enum_t));
*constraint_ptr_ptr = (jack_driver_param_constraint_desc_t *)calloc(1, sizeof(jack_driver_param_constraint_desc_t));
*array_size_ptr = 0;
}



Loading…
Cancel
Save