STINNER Victor <victor.stin...@haypocalc.com> added the comment:

Another test (only requires ~2 GB of memory, not 4 GB or more) for the patch:

import _elementtree
def test():
    parser=_elementtree.XMLParser()
    text='s' * (2**31 + 10)
    try:
        parser.feed(text)
    except OverflowError as err:
        print("ok: %s" % err)
        return
    except:
        pass
    print("error: OverflowError not raised")
test()

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8651>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to