• scottmg@chromium.org's avatar
    Fix handling of large xml documents · c73ad41c
    scottmg@chromium.org authored
    libxml 2.9.0 (we updated from 2.7.x to 2.9.2 for M45) added a
    default-on abort on > 10,000,000 byte documents which is a bit
    arbitrary and is causing problems for users. The _HUGE option
    makes it not do this. My assumption is that this is reasonable
    behaviour security-wise as: 1) we were doing it this way until
    recently; and 2) it shouldn't be any worse in the renderer than
    just doing `for (;;) x+='y';`
    
    (There's a big trivial xml file in
    LayoutTests/http/tests/xmlhttprequest/resources/big.xml
    that goes with the test, but git cl upload won't upload it. I
    guess I'll dcommit just that file first?)
    
    R=dominicc@chromium.org
    BUG=528078,463958
    TEST=LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-big-document.html
    
    Review URL: https://codereview.chromium.org/1316673007
    
    git-svn-id: svn://svn.chromium.org/blink/trunk@201992 bbb929c8-8fbe-4397-9dbb-9b2b20218538
    c73ad41c
xmlhttprequest-big-document-expected.txt 161 Bytes