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 e7a61cf
Browse filesBrowse the repository at this point in the historyBrowse files
FixGH-19200: replace unchecked realloc/malloc with perealloc/pemalloc
Raw realloc() returns NULL on allocation failure, losing the original
pointer and causing a crash on the next dereference. pemalloc/perealloc
with persistent=true wrap the system allocator but call
zend_out_of_memory() on failure, giving a clean exit instead of an
undefined crash.
Converts all V701 locations from the PVS-Studio report and unchecked
malloc calls in zend_register_functions() (GH-17013). Skips
zend_alloc.c (already handled) and IR JIT code (third-party).
The zend_inheritance.c changes also simplify the realloc/erealloc
branch into a single perealloc() call, matching the existing pattern
at zend_implement_stringable().
FixesGH-19200ClosesGH-17013
0 commit comments