sping added the comment:
Hi StyXman,
I had a closer look at the files you shared, thanks for those, very helpful!
What I found is that expat_test.py uses a single scalar variable
(_DictSAXHandler.parser) to keep track of the related parser, while it would
need a stack to allow recursion. In
New submission from Marcos Dione :
I'm trying to add external entities support to xmltodict[1]. For that I
extended the handler to have a ExternalEntityRefHandler handler. After reading
a couple of files, the script lock in a tight loop.
I ran the script with gdb (!!) and found that expat thi