[wp-trac] [WordPress Trac] #45303: XML parsing should be done in chunks, causing parser out of memory

WordPress Trac noreply at wordpress.org
Wed Nov 7 08:25:06 UTC 2018


#45303: XML parsing should be done in chunks, causing parser out of memory
--------------------------+-----------------------------
 Reporter:  amanmanglik   |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.9.8
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 SimplePie in wordpress reads xml as a single chunk instead of multiple
 chunks as recommended by xml_parse documentation. This is resulting is
 parser running out of memory internally and the error is gets suppressed.
 Its the cause for blogger importer plugin failing with >10MB xml files and
 possibly other issues.

 Full context and a unpolished fix in the support thread here -
 https://wordpress.org/support/topic/xml-parsing-not-in-chunks-parser-out-
 of-memory/

 I have verified the bug and my fix on wordpress version 4.9.8 but i am
 guessing this has existed for a while.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45303>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list