Kannel crash on Xeon systems...

Wilfried Goesgens <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
 cat /proc/cpuinfo 
model name      : Intel(R) XEON(TM) CPU 1.80GHz

gives me segfaults in octstr_imm, with the index being negative.

the following patch fixes this.

Wilfried Goesgens
diff (text/plain, 340 B)
--- a/gateway/gwlib/octstr.c	2006-04-26 16:05:02.000000000 +0200
+++ b/gateway/gwlib/octstr.c	2006-04-18 21:01:30.000000000 +0200
@@ -141,7 +141,7 @@
  * and discarding the lowest to bits to get rid of typical alignment
  * bits.
  */
-#define CSTR_TO_LONG(ptr)      (labs((long) ptr) >> 2)
+#define CSTR_TO_LONG(ptr)	(((long) ptr) >> 2)
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.