lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LYNX-DEV segmentation fault on OSF/1 machines


From: Charles Karney
Subject: LYNX-DEV segmentation fault on OSF/1 machines
Date: Fri, 18 Jul 1997 14:45:13 -0400 (EDT)

Configuration: lynx 2.7.1 with

http://www.slcc.edu/lynx/fote/patches/
 fotemods.zip           14-Jul-97 12:45   840K  

patches.  Running on a DEC Alpha OSF/1 3.2c system.

I get a segmentation fault immediately when running lynx.  The problem is
that HASH_FUNCTION defined in HTAtom.c returns a negative hash value
(because char is signed).  The following patch fixes this:

--- WWW/Library/Implementation/HTAtom.c.orig    Thu Jun  6 19:11:52 1996
+++ WWW/Library/Implementation/HTAtom.c Fri Jul 18 14:06:49 1997
@@ -38,7 +38,7 @@
 /*
  *     Alternate hashing function.
  */
-#define HASH_FUNCTION(cp_hash) ((strlen(cp_hash) * *cp_hash) % HASH_SIZE)
+#define HASH_FUNCTION(cp_hash) ((strlen(cp_hash) * (unsigned char)*cp_hash) % 
HASH_SIZE)
 
 PUBLIC HTAtom * HTAtom_for ARGS1(CONST char *, string)
 {

-- 
   Charles Karney
   Plasma Physics Laboratory      E-mail:  address@hidden
   Princeton University           Phone:   +1 609 243 2607
   Princeton, NJ 08543-0451       FAX:     +1 609 243 3438
;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]