Re: Heap use after free in parser.c

Jay Civelli via xml <[email protected]>
Newsgroups gmane.comp.gnome.lib.xml.general
Message-ID <CAJ6=x6nPhatC45CcRpG6U-PNkaLSLNmG+vZMEZXjq-Rew6F1iw@mail.gmail.com>
Hi Nick,
Did you have a chance to look at my latest patch? (attached in my previous
email)

Thanks.

Jay

On Mon, Jan 8, 2018 at 1:43 PM, Jay Civelli <[email protected]> wrote:

> On Mon, Jan 8, 2018 at 11:27 AM, Nick Wellnhofer <[email protected]>
> wrote:
>
>> On 02/01/2018 20:08, Jay Civelli via xml wrote:
>>
>>> We ran into a heap use after free in Chromium http://crbug.com/793715 <
>>> http://crbug.com/793715> that I think I tracked down.
>>>
>>
>> I don't have access to this page.
>
> You should have access now.
>
>>
>>
>> I have a tentative patch attached to address it.
>>> In parser.c, if a call to xmlCharEncInput() fails and has grown the
>>> buffer, the ctxt object could still point to the old deleted buffer.
>>>
>>
>> Maybe it's better to call xmlHaltParser if xmlCharEncInput fails. That's
>> what the other code path in xmlParseChunk does.
>
> Good idea, done in new attached patch. Note that I changed the error from
> the existing from XML_ERR_INVALID_ENCODING to XML_ERR_INVALID_CHAR which
> seemed to make more sense.
>
> Jay
>
>
>
>>
>>
>> Nick
>>
>
>

_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
https://mail.gnome.org/mailman/listinfo/xml
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.