]> granicus.if.org Git - php/commit
Use GC stack in nested data removal
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 12 Jun 2020 12:57:08 +0000 (14:57 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 12 Jun 2020 13:02:12 +0000 (15:02 +0200)
commit50c87e92fc22ae3da5dda6f7340d3b786c6117a4
treec8a824183dc116d58c73448e990dbab6daed01a4
parentb7a55aaff272f28fc03e68b756ad2f232515aaf2
Use GC stack in nested data removal

We should be doing this anyway to prevent stack overflow, but on
master this is important for an additional reason: The temporary
GC buffer provided for get_gc handlers may get reused if the scan
is performed recursively instead of indirected via the GC stack.

This fixes oss-fuzz #23350.
Zend/tests/gc_043.phpt [new file with mode: 0644]
Zend/zend_gc.c