Re: Seg. fault when using Salsa 0.0.25

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At Thu, 5 Nov 2009 11:32:39 +0100,
Mogens Lindholdt Lauridsen wrote:
> 
> Hi,
> 
> I got an application which uses Salsa 0.0.25. When I quit this 
> application, it ends with a seg. fault.
> 
> I don't know if this is caused by my application using Salsa wrongly, or a 
> problem in Salsa.
> 
> However, I got a fix for it.
> 
> When my application closes, "hctl_elem_event_handler" is called. And since 
> "helem->private_data" is null, this causes a seg. fault:
>         snd_mixer_elem_t *elem = helem->private_data;
>         snd_mixer_t *mixer = elem->mixer;
> 
> It seems like:
>         if (!elem)
>                 return 0;
> should have been before:
>         snd_mixer_t *mixer = elem->mixer;

Ah, a typical NULL dereference.
Fixed and released as version 0.0.26 now.


thanks,

Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux