[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnokii smsd not giving me a clue as to why it is not sending and rec
From: |
helpFractal |
Subject: |
Re: gnokii smsd not giving me a clue as to why it is not sending and receiving sms' |
Date: |
Sun, 6 Jan 2013 04:48:42 -0800 (PST) |
I discovered that the 'PDU mode set' message is in 'atgen.c' so I added some
debug to find out where is was crashing and I think that the following line
in the 'AT_WriteSMS' function is causing a problem:
memcpy(req2 + offset + 3, data->raw_sms->remote_number, tmp + 2);
I think that the problem is that 'offset' is -1 when drvinst->no_smsc = 1
(as set a little higher in the code)
if (drvinst->no_smsc) {
/* not even a length byte included */
offset--;
} else {
memcpy(req2, data->raw_sms->message_center,
data->raw_sms->message_center[0] + 1);
offset += data->raw_sms->message_center[0];
}
My C is not good enough but if you do 'req2 + offset + 2' as an address into
'memcpy' when 'offset' is -1 is this valid?
--
View this message in context:
http://old.nabble.com/gnokii-smsd-not-giving-me-a-clue-as-to-why-it-is-not-sending-and-receiving-sms%27-tp34856997p34864642.html
Sent from the gnokii-users mailing list archive at Nabble.com.
- gnokii smsd not giving me a clue as to why it is not sending and receiving sms', helpFractal, 2013/01/03
- Re: gnokii smsd not giving me a clue as to why it is not sending and receiving sms', Daniele Forsi, 2013/01/04
- Re: gnokii smsd not giving me a clue as to why it is not sending and receiving sms', helpFractal, 2013/01/04
- Re: gnokii smsd not giving me a clue as to why it is not sending and receiving sms', Daniele Forsi, 2013/01/04
- Re: gnokii smsd not giving me a clue as to why it is not sending and receiving sms', helpFractal, 2013/01/04
- Re: gnokii smsd not giving me a clue as to why it is not sending and receiving sms', helpFractal, 2013/01/05
- Re: gnokii smsd not giving me a clue as to why it is not sending and receiving sms', Daniele Forsi, 2013/01/05
- Re: gnokii smsd not giving me a clue as to why it is not sending and receiving sms', helpFractal, 2013/01/06
- Re: gnokii smsd not giving me a clue as to why it is not sending and receiving sms',
helpFractal <=
- Re: gnokii smsd not giving me a clue as to why it is not sending and receiving sms', helpFractal, 2013/01/06
- Re: gnokii smsd not giving me a clue as to why it is not sending and receiving sms', helpFractal, 2013/01/06
- Re: gnokii smsd not giving me a clue as to why it is not sending and receiving sms', Daniele Forsi, 2013/01/06