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