[php-src] PR #11844: Fix uouv on oom on object allocation
| From: | iluuu1994 | Date: | Mon, 31 Jul 2023 23:41:19 +0000 |
| Subject: | [php-src] PR #11844: Fix uouv on oom on object allocation | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-23229@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/11844
Author: iluuu1994
We should initialize object handlers before trying to allocate more memory, because if we OOM
we'll look for the free_obj handler which has not been initialized. Furthermore, free_obj can
run before the object is fully initialized, requiring guards for potentially unset fields.
Fixes GH-11734