Skip to contentSkip to conversation

bug in salsa async handler + patch

DISCUSSION maarten van es 2 participants 2 messages Apr 17, 2009 – Apr 22, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

I couldn't find where or how to submit patches for salsa, so here goes. This patch resolves random program crashes when using libsalsa with an async handler: snd_async_del_handler does not correctly maintain its list of async handlers. This patch is for salsa-lib-0.0.21, the latest stable version.

change src/async.c, line 118
async_list = h;

to src/async.c, line 118
async_list = h->next;

Maarten

#1 lore raw

At Fri, 17 Apr 2009 20:30:45 +0100,

Quoted 9 lines · maarten van es

Hi,

I couldn't find where or how to submit patches for salsa, so here goes. This patch resolves random program crashes when using libsalsa with an async handler: snd_async_del_handler does not correctly maintain its list of async handlers. This patch is for salsa-lib-0.0.21, the latest stable version.

Quoted 5 lines

change src/async.c, line 118
async_list = h;

to src/async.c, line 118
async_list = h->next;

Thanks, fixed and released as version 0.0.22 now.

Takashi