RE: [xml] uri.c bug in libxml2-2.2.3

Date view Thread view Subject view Author view

From: Marc Sanfacon (sanm@copernic.com)
Date: Wed Sep 20 2000 - 14:55:39 EDT


Excellent, thank you. I applied your path to my code and it seems to work
well. I shall do more tests, though.

Marc.

-----Original Message-----
From: xml-request@rufus.w3.org [mailto:xml-request@rufus.w3.org]On
Behalf Of Wayne Davison
Sent: September 20, 2000 14:24
To: 'xml@rpmfind.net'
Subject: RE: [xml] uri.c bug in libxml2-2.2.3

On Wed, 20 Sep 2000, Marc Sanfacon wrote:
> But am I right when saying that 'ref' could be an absolute path ?

No, that is handled back in step 5. By the time we get to step 6, we know
that we're combining a relative path with the base path.

In fact, I don't even think that the res->patch[out - 1] != '/' check is
needed, since the only path that we could have copied over from "bas" (in
step 6a) ends in a slash. Thus, the test in my patch could be simplified
to just this:

        if (out == 0)
            res->path[out++] = '/';

..wayne..

----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net
----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Sep 20 2000 - 15:43:13 EDT