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
--- 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)
 

Reply via email to