Hi,

I confirmed this problem and tried to find a solution with Akira
Tagoh.

This bug can be reproducible by resume.xml is submitter reported and
xml-resume-library package.
When the element may have CDATA in DTD and it hasn't any data in the
document, mlv freezes and crashes with segmentation fault in background.
We found handling of dummy node was something bad.

Here is a wordaround patch, although we aren't certain this is really
correct. As far as my test, there isn't no visible memory leak by this
patch.
You can get deb from http://kmuto.jp/tmp/mlview_0.7.1-1.1_i386.deb
(md5sum:ecf6b2a989c986a9aa030e785cf44293).

--- mlview-0.7.1.orig/src/mlview-utils.c
+++ mlview-0.7.1/src/mlview-utils.c
@@ -2179,10 +2179,10 @@
                         xmlNewChild (a_node, NULL, "<!dummy?>",
                                      NULL);
 
-                if (test_node->name) {
+                /* if (test_node->name) {
                         xmlFree ((xmlChar *) test_node->name);
                         test_node->name = NULL;
-                }
+                } */
 
                 /*
                  *Insert each potential child node 

-- 
Kenshi Muto
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to