RE: wapbox core dump
"Gaurav_Khurana" <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <CE677D1BAD605E40B22AE0704FE6DCAE015982A8@blamsg001.corp.satyam.ad> |
Hello, Can someone send me the developer documentation on wapbox source code. Since I donot have all the packages no my linux machine so the documentation is not available. It would be nice if it is in .txt format. Regards Gaurav -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Mindaugas Riauba Sent: Monday, October 03, 2005 4:15 PM To: [email protected] Subject: wapbox core dump Hello, Looked into core dump I submitted to bugs.kannel.org some time ago and found the reason why wapbox was coredumping. In gw/wml_compiler.c line 601 we search for root element. And if xmlDocGetRootElement(document); returns NULL we pass it to string_table_build() and get core dump soon afterwards. How to patch Kannel to avoid coredump in such case? Clearly we have to add: if ( node == NULL ) return(-1); And also some check for ret value in line 376 where we are calling parse_document(). Something else? Mindaugas DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.