wapbox core dump

"Mindaugas Riauba" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
  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
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.