gnokii-users
[Top][All Lists]
Advanced

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

Re: Segfault with smsd


From: Pawel Kot
Subject: Re: Segfault with smsd
Date: Fri, 28 Aug 2009 15:32:45 +0200

Hi,

On Fri, Aug 28, 2009 at 12:31, Daniele Forsi<address@hidden> wrote:
> I think it's an invalid array index at line 1266 when
> data->raw_sms->number is zero, as the OP noted
> data->raw_sms->number = data->sms_folder->locations[data->raw_sms->number - 
> 1];

Yes, that's what I think as well. The patch will fix the segfault and
that's good.
But I wonder why data->raw_sms->number can be 0 here. It should not.

I wonder also if the function in the middle do not have side effect of
altering data->raw_sms->number.

take care,
-- 
Pawel Kot




reply via email to

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