9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Forwarded attachment...
@ 2003-12-19 15:22 andrey mirtchovski
  2003-12-18 22:31 ` Russ Cox
  0 siblings, 1 reply; 4+ messages in thread
From: andrey mirtchovski @ 2003-12-19 15:22 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: TEXT/PLAIN, Size: 292 bytes --]

This patch fixes links crashing terminals. I lost all my work from yesterday so I
couldn't get it on the web.

The problem isn't so bad if you have more memory (>= 512 with untouched
kernelpercent) where only links will crash. that's why we were able to debug
it yesterday...

andrey

[-- Attachment #2: Type: TEXT/PLAIN, Size: 1116 bytes --]

I don't know whether that's the same bug, but links crashed on
nikkei.com due to a memcpy() being called with a nil second argument
in dns.c:49.  I've worked around it as follows:

	diff /n/dump/2003/1218/usr/andrey/src/links-ape/dns.c /usr/andrey/src/links-ape/dns.c
	47,48c47,49
	< 		nogethostbyaddr: if (!(hst = gethostbyname((char *)name)))
	< 			return -1;
	---
	> nogethostbyaddr:
	> 	if (!(hst = gethostbyname((char *)name)) || !hst->h_addr_list[0])
	> 		return -1;

also add this one:

	diff /n/dump/2003/1218/usr/andrey/src/links-ape/config.h /usr/andrey/src/links-ape/config.h
	22a23
	> #define HAVE_GETHOSTBYADDR 1

Can you verify if this fixes links' crashing?

The problem with nikkei not displaying proper fonts is because they're
using Shift_GIS encoding, which Links doesn't know how to handle.  I
should port lunix' "iconv" which knows everything there is to know
about encodings, and will make links use that instead of its own
(limited) conversion tables, then it'll handle Shift_JIS and many more
sites as it should.

That won't happen immediately, though...

andrey

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-12-19 22:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-19 15:22 [9fans] Forwarded attachment andrey mirtchovski
2003-12-18 22:31 ` Russ Cox
2003-12-19 17:21   ` mirtchov
2003-12-19 22:40     ` David Presotto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).