linphone-developers
[Top][All Lists]
Advanced

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

[Linphone-developers] [PATCH]linphone - fix zero max call log history co


From: Maciej S. Szmigiero
Subject: [Linphone-developers] [PATCH]linphone - fix zero max call log history count
Date: Sat, 11 Jan 2014 00:04:56 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0

Hello,

When max call log history count is set to zero linphone (at least linphonec) 
segfaults soon after finishing a call.

This is caused by linphone_call_log_completed() appending the just finished 
call data to call log, then trying to trim the
log to the requested max count by removing excess calls.

Unfortunately, when max call log history count is set to zero this also 
destroys the newly added call, which was
supposed to be destroyed only later.
In the end, the linphone segfaults when trying to access already freed memory.

The attached patch fixes this by skipping the adding / trimming / saving 
altogether when max call log history count is set to zero.

Best regards,
Maciej Szmigiero

Attachment: linphone-allow-zero-max-call-logs.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]