[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev dev.11+ crash (with fix)
From: |
Leonid Pauzner |
Subject: |
lynx-dev dev.11+ crash (with fix) |
Date: |
Fri, 27 Jun 2003 02:36:10 +0400 (MSD) |
Apparently, any dev version >9 crash at
X-URL: http://bankr.tsr.ru/tv-6.shtml
gdb shows _my_ error in HTML.c (case HTML_A): bad event happen when
(present[HTML_A_HREF] = true && value[HTML_A_HREF] = NULL)
e.g., href attribute without value.
The following fix required:
--- html.was 2003-06-02 11:29:56.000000000 +0000
+++ html.c 2003-06-27 02:22:10.000000000 +0000
@@ -2912,11 +2912,11 @@ PRIVATE int HTML_start_element ARGS6(
me->inBoldA = TRUE;
StrAllocCopy(href, value[HTML_A_HREF]);
- CHECK_FOR_INTERN(intern_flag,href); /*NULL, '\0', or '#'*/
+ if (isEmpty(href))
+ StrAllocCopy(href, "#");
+ CHECK_FOR_INTERN(intern_flag,href); /* '#'*/
if (intern_flag) { /*** FAST WAY: ***/
- if (isEmpty(href))
- StrAllocCopy(href, "#");
TRANSLATE_AND_UNESCAPE_TO_STD(&href);
} else {
; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- lynx-dev dev.11+ crash (with fix),
Leonid Pauzner <=