Re: BUG #14584: Segmentation fault importing large XML file

From: Jorge Solórzano <jorsol(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #14584: Segmentation fault importing large XML file
Date: 2017-03-08 20:02:06
Message-ID: CA+cVU8M2FuK3XrHRSypW1y3gk+xgGjAgrT0k+sLVWsRJsW=3+A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Let's assume that the bug is in libxml2, should postgres crash or should it
have some kind of protection against it?

Yeah. The segfault is inside xmlParserPrintFileContext(), so really there
> is at least one libxml2 bug here and possibly two. Maybe it should have
> been able to cope with such large input, or maybe not, but for sure its
> printing functions should have been able to cope with the state at the
> time the error was reported.
>
> I don't think there's much we can do about it; you need to report this
> to the libxml2 folk.
>
> regards, tom lane
>

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2017-03-08 20:16:16 Re: BUG #14584: Segmentation fault importing large XML file
Previous Message Tom Lane 2017-03-08 19:54:37 Re: BUG #14584: Segmentation fault importing large XML file