[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Lynx-dev] Re: Bug#509321: lynx-cur: Visiting http://reddit.com/ causes
From: |
Thomas Dickey |
Subject: |
[Lynx-dev] Re: Bug#509321: lynx-cur: Visiting http://reddit.com/ causes segfault. |
Date: |
Mon, 22 Dec 2008 17:52:19 -0500 |
User-agent: |
Mutt/1.3.27i |
On Mon, Dec 22, 2008 at 12:40:10PM +0100, Atsuhito Kohda wrote:
> Hi Aaron,
>
> On Sun, 21 Dec 2008 18:50:38 +1000, Aaron Howell wrote:
>
> > When you visit http://reddit.com/, either from the command line or from the
> > goto option within Lynx,
> > Lynx crashes immediately with signal 11.
> > For this particular site, the problem can be worked around by adding www.
> > to the url,
> > however the problem occurs with other sites as well, its just that this one
> > is particularly easy to verify.
>
> I confirmed the problem and forwarded this to the upstream.
> I hope this will be fixed soon.
It's a small fix:
--- WWW/Library/Implementation/HTFile.c.orig Sun Dec 7 18:49:34 2008
+++ WWW/Library/Implementation/HTFile.c Mon Dec 22 22:46:33 2008
@@ -1336,8 +1336,10 @@
{
CompressFileType method = cftNone;
- if (!strncasecomp(ct, "application/gzip", 16) ||
- !strncasecomp(ct, "application/x-gzip", 18)) {
+ if (ct == 0) {
+ method = cftNone;
+ } else if (!strncasecomp(ct, "application/gzip", 16) ||
+ !strncasecomp(ct, "application/x-gzip", 18)) {
method = cftGzip;
} else if (!strncasecomp(ct, "application/compress", 20) ||
!strncasecomp(ct, "application/x-compress", 22)) {
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
pgpxpe9x5F8yO.pgp
Description: PGP signature
- [Lynx-dev] Re: Bug#509321: lynx-cur: Visiting http://reddit.com/ causes segfault.,
Thomas Dickey <=