Re: how to kill kannel
Andreas Fink <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
On Mittwoch, April 16, 2003, at 11:21 Uhr, Oleg Titov wrote: > hi, > it comes very easy to kill kannel by sending to it SMS message with > alpha source address. > > Bearer box (v.1.3.1) gracefully dies with gwlib/octstr.c:1256: > octstr_append_char: Assertion`ch<=UCHAR_MAX failed. > > Last message from smsbox Immutable octet strings: 196 > > You also are unable to restart bearerbox with recuperate SIM messages > as it tries to serve this message. (I have Wavecom as SMSC). > > May be any SMS messages with alpha source address should be ignored? > or at least to have an option to ignore them. > > Oleg Titov Alpha source is completely legal. But it is most probably too long (longer than 256). My guess is that octstr_append_char tries to append the length as a char to a outgoing string and this length is larger than a characters' size. Probably a safecheck method needed here. > Andreas Fink Global Networks Switzerland AG ------------------------------------------------------------------ Tel: +41-61-6666333 Fax: +41-61-6666334 Mobile: +41-79-2457333 Global Networks, Inc. Clarastrasse 3, 4058 Basel, Switzerland Web: http://www.global-networks.ch/ [email protected] ------------------------------------------------------------------ Send SMS to +979 979 UNICEF (+979979864233) to donate a small amount to the children of Iraq. http://www.gni.ch/unicef