Re: Invalid address causes Kannel to crash (was: (no subject))

Kalle Marjola <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
On Mon, 14 Apr 2003 [email protected] wrote:

> The server should not crash, just because a invalid address has been
> passed to it.  I should be able to pass anything into this of any length 
> and the server should return a status saying, invalid address, but it 
> should NOT crash.
> 
> Am I alone in thinking this?

No you are not. There should be no PANIC (or similar thing) anywhere in 
smscconn -modules (or sms-services or whatever). I should have written
this to smscconn.h long time ago but of course forgot to :]

Maybe someone could add to guidelines something like:
'In any case, the smscconn module is not allowed to panic and it
 must check all inputs for data validity before calling octstr
 (or other) functions that might PANIC'


-- 
&kalle marjola
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.