Linus Torvalds a0a631122a xml parsing: add XML_PARSE_HUGE flag to xmlReadMemory()
It looks like libxml2 has some internal limitations by default that
causes parse failures in some situations.  Avoid them with
XML_PARSE_HUGE.

Without this, you get errors like

    test.xml:349250: parser error : internal error: Huge input lookup
    όμουν τουλάχιστον αλλά +2kg και ενδεχομένως +4
                                                                                   ^
when something in the xml file grows too large.

I don't know libxml2 internals, so I have no idea what exactly goes
wrong, but the docs say:

    XML_PARSE_HUGE = 524288 : relax any hardcoded limit from the parser

and that makes us successfully parse the Greek file from Kostas.

Reported-by: Kostas Katsioulis <kostaskatsioulis@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2021-04-21 08:39:29 -07:00
..
2019-08-08 08:56:44 -07:00
2020-12-17 08:10:56 -08:00
2017-04-29 13:32:55 -07:00
2020-10-24 09:51:37 -07:00
2020-09-29 16:13:03 -07:00
2021-03-12 22:24:23 +01:00
2021-03-12 22:24:23 +01:00
2018-10-21 19:55:09 +03:00
2021-02-10 14:33:15 -08:00
2021-02-10 14:33:15 -08:00
2021-03-08 16:29:04 -08:00
2021-03-24 10:30:22 -07:00
2020-10-24 09:51:37 -07:00
2020-04-18 13:41:29 +02:00
2019-12-13 07:04:00 -05:00
2017-04-29 13:32:55 -07:00
2020-12-29 08:34:09 -08:00
2020-03-10 17:42:54 -07:00
2020-03-10 17:42:54 -07:00
2020-05-03 15:02:21 -07:00