W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2001

Access Violations occured in the same place

From: Huajun Zeng (Intl Staffing) <i-hjzeng@microsoft.com>
Date: Wed, 5 Dec 2001 16:40:14 +0800
Message-ID: <F4C77846CEE593418BE5AB7B6A83111E04746E07@bjs-msg-01.fareast.corp.microsoft.com>
To: <html-tidy@w3.org>
I am using tidyparser to parse homepages of thousands of websites. There
always (about 1 of each 100 sites) occurred the "Access Violation" error
in the following code in ParseDefList function(at the last but 2 line),
what happened in it?

        /* center in a dt or a dl breaks the dl list in two */

        if (node->tag == tag_center)

        {

            if (list->content)

                InsertNodeAfterElement(list, node);

            else /* trim empty dl list */

            {

                InsertNodeBeforeElement(list, node);

                DiscardElement(list);

            }

 

            /* and parse contents of center */

            ParseTag(lexer, node, mode);

 

            /* now create a new dl element */

            list = InferredTag(lexer, "dl");

            InsertNodeAfterElement(node, list);

            continue;

        }

 
Received on Wednesday, 5 December 2001 03:41:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:47 GMT