lynx-dev
[Top][All Lists]
Advanced

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

LYNX-DEV Bug fix for ac-0.74 and ac-0.75 (was: ... LYUnEscapeEntities pr


From: Klaus Weide
Subject: LYNX-DEV Bug fix for ac-0.74 and ac-0.75 (was: ... LYUnEscapeEntities problem under digital UNIX)
Date: Sat, 4 Oct 1997 15:24:58 -0500 (CDT)

On Sat, 4 Oct 1997, Heikki Kantola wrote:

> With -trace and suggested debug printouts the last lines for <URL:http://
> www.helsinki.fi/> will be:
>       New anchor 1400a0e00 has hash 44 and address
>       http://www.helsinki.fi/yliopisto/'Linking anchor 1400a0d40 to anchor
>       1400a0e00
>       HTML:begin_element: adding style to stack - Normal
>       SGML: Unknown attribute vspace for tag IMG
>       SGML: Attribute value 5 ignored
>       SGML: Unknown attribute hspace for tag IMG
>       SGML: Attribute value 5 ignored
>       SGML: Start <IMG>
>       LYUnEscapeEntities: alloc 0 failed!
>       trying to unescape ''

Ok, those last two lines show what's happening.  calloc is called as
calloc(1, 0) and that returns NULL on your system.  Other implementations
of calloc don't complain.  But it is still an error in the LYCharUtils.c 
code.

The following should fix it:  at the beginning of LYUnEscapeEntities,
change

    if (!str || *str == '\0')
        return str;

to

    if (!str || *str == NULL || **str == '\0')
        return str;
 

     Klaus


;
; 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]