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 268a2e5
Browse filesBrowse the repository at this point in the historyBrowse files
FixGH-25305: NULL dereference in lxb_dom_document_destroy on lexbor document init failure
lxb_dom_document_init() set owner_document only after all of the
document's memory pools were created. When one of these allocations
failed, which the fallible lexbor allocators make possible once
memory_limit is reached, the error path of
lxb_html_document_interface_create() called lxb_dom_document_destroy()
with a NULL owner_document and dereferenced it. The failure path also left
dangling pointers to the destroyed pools.
Set owner_document before allocating and reset the pool pointers on
failure, carried as a lexbor patch until lexbor/lexbor#448 is merged. Only
the source/lexbor part of the upstream change is carried.
CloseGH-25320
0 commit comments