aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2016-09-29 23:27:34 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2016-09-29 23:27:34 +0200
commit86ec76d77d96f0948245a6794a89a5b21f174823 (patch)
tree1cd65bf60612b24944b2e85349fea7279dafc2a7
parent236d3bff276c7e8fed7cd72f5251f06d41668710 (diff)
downloadsherlock.lv2-86ec76d77d96f0948245a6794a89a5b21f174823.tar.xz
fix crash with uninitialized atom forge.
-rw-r--r--VERSION2
-rw-r--r--atom_inspector_eo.c7
-rw-r--r--midi_inspector_eo.c7
-rw-r--r--osc_inspector_eo.c7
4 files changed, 16 insertions, 7 deletions
diff --git a/VERSION b/VERSION
index 4aa0906..487397b 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.11.15
+0.11.31
diff --git a/atom_inspector_eo.c b/atom_inspector_eo.c
index fbd542e..b65bae9 100644
--- a/atom_inspector_eo.c
+++ b/atom_inspector_eo.c
@@ -420,7 +420,7 @@ _discover(UI *ui)
{
union {
LV2_Atom atom;
- uint8_t raw [128];
+ uint8_t raw [512];
} buf;
lv2_atom_forge_set_buffer(&ui->forge, buf.raw, 512);
@@ -440,7 +440,7 @@ _check_changed(UI *ui, LV2_URID property)
{
union {
LV2_Atom_Event ev;
- uint8_t raw [128];
+ uint8_t raw [512];
} buf;
lv2_atom_forge_set_buffer(&ui->forge, buf.raw, 512);
@@ -807,6 +807,9 @@ port_event(LV2UI_Handle handle, uint32_t i, uint32_t size, uint32_t urid,
case 0:
case 1:
{
+ uint8_t raw [512];
+ lv2_atom_forge_set_buffer(&ui->forge, raw, 512);
+
LV2_Atom_Forge_Ref ref = 1;
if(props_advance(&ui->props, &ui->forge, 0, (const LV2_Atom_Object *)buf, &ref))
{
diff --git a/midi_inspector_eo.c b/midi_inspector_eo.c
index 4dae485..fd1922a 100644
--- a/midi_inspector_eo.c
+++ b/midi_inspector_eo.c
@@ -580,7 +580,7 @@ _discover(UI *ui)
{
union {
LV2_Atom atom;
- uint8_t raw [128];
+ uint8_t raw [512];
} buf;
lv2_atom_forge_set_buffer(&ui->forge, buf.raw, 512);
@@ -600,7 +600,7 @@ _check_changed(UI *ui, LV2_URID property)
{
union {
LV2_Atom_Event ev;
- uint8_t raw [128];
+ uint8_t raw [512];
} buf;
lv2_atom_forge_set_buffer(&ui->forge, buf.raw, 512);
@@ -906,6 +906,9 @@ port_event(LV2UI_Handle handle, uint32_t i, uint32_t size, uint32_t urid,
case 0:
case 1:
{
+ uint8_t raw [512];
+ lv2_atom_forge_set_buffer(&ui->forge, raw, 512);
+
LV2_Atom_Forge_Ref ref = 1;
if(props_advance(&ui->props, &ui->forge, 0, (const LV2_Atom_Object *)buf, &ref))
{
diff --git a/osc_inspector_eo.c b/osc_inspector_eo.c
index 556b941..9f61d79 100644
--- a/osc_inspector_eo.c
+++ b/osc_inspector_eo.c
@@ -620,7 +620,7 @@ _discover(UI *ui)
{
union {
LV2_Atom atom;
- uint8_t raw [128];
+ uint8_t raw [512];
} buf;
lv2_atom_forge_set_buffer(&ui->forge, buf.raw, 512);
@@ -640,7 +640,7 @@ _check_changed(UI *ui, LV2_URID property)
{
union {
LV2_Atom_Event ev;
- uint8_t raw [128];
+ uint8_t raw [512];
} buf;
lv2_atom_forge_set_buffer(&ui->forge, buf.raw, 512);
@@ -967,6 +967,9 @@ port_event(LV2UI_Handle handle, uint32_t i, uint32_t size, uint32_t urid,
case 0:
case 1:
{
+ uint8_t raw [512];
+ lv2_atom_forge_set_buffer(&ui->forge, raw, 512);
+
LV2_Atom_Forge_Ref ref = 1;
if(props_advance(&ui->props, &ui->forge, 0, (const LV2_Atom_Object *)buf, &ref))
{