You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c833e31
Browse filesBrowse the repository at this point in the historyBrowse files
ext/libxml: fix use-after-free when re-registering the entity loader from its own callback
The loader callback ran with a borrowed $this (non-closures are not
ref-held by zend_call_known_fcc), so re-registering the loader from within
its own callback freed the executing callback and its bound object,
causing a use-after-free.
Hold a reference to the callback for the duration of the call instead, so
the loader may safely swap itself out (for instance to run a nested parse)
while it is running.
0 commit comments