[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Linphone-developers] Crash with no sound card installed...
From: |
Robin Getz |
Subject: |
[Linphone-developers] Crash with no sound card installed... |
Date: |
Thu, 8 Mar 2007 09:49:29 -0500 |
User-agent: |
KMail/1.9.5 |
I was running linphonec on a system with no sound card installed (I just
wanted to create the default .linphonerc file), and I got a null pointer
access in:
linphone-1.6.0/mediastreamer2/src/mssndcard.c:ms_snd_card_get_string_id()
const char *ms_snd_card_get_string_id(MSSndCard *obj){
if (obj->id==NULL)
obj->id=ms_strdup_printf("%s:
%s",obj->desc->driver_type,obj->name);
return obj->id;
}
Shouldn't there be a checked here as well to make sure obj != NULL, before it
looks at ->id?
The interesting thing (I thought) was that it didn't warn me on running, but
crashed on "quit"...
----------------------
root:~> linphonec
NLS disabled.
Ready
Warning: video is disabled in linphonec. Run with -V option to enable it.
linphonec> quit
Terminating...
No active call.
NULL pointer access
SIGSEGV
======================
Thanks
-Robin
- [Linphone-developers] Crash with no sound card installed...,
Robin Getz <=