Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix segfault in SimpleXML when using entities
Summary: Fix segfault while looking at security issue, any XML file parsed by SimpleXML resulted in a segfault if an Entity was provided. Test Plan: fast_tests No segfault with: <?php $test = '<!DOCTYPE foo [<!ENTITY xxe SYSTEM "file:///etc/passwd">]> <search><user>&xxe;</user></search>'; $x = new SimpleXMLElement($test); var_dump($x); Reviewers: mwilliams Reviewed By: mwilliams CC: ps, mwilliams Differential Revision: 346984 Revert Plan: Ok
- Loading branch information