[GIT-PULLS] [php-src] PR #23250: PFA: Extend local pointer map after loading PFA from SHM

[email protected] (arnaud-lb)
Newsgroups php.git-pulls
Message-ID <IM6F1m3kGkquLDmbAYFOW1juCvCKmlE68LCPtmrrwGU@main.internal.php.net>
Pull Request: https://github.com/php/php-src/pull/23250
Author: arnaud-lb

When loading a PFA from SHM we may need to extend the local pointer map because
the PFA may use pointers higher than CG(map_ptr_last). Similar synchronization
happens in inheritance cache [^1] or when loading whole scripts [^2].

The test reproduces under ASAN with Opcache enabled.

Bug found by Ryan @ Calif.io.

[^2]: https://github.com/php/php-src/blob/7a2303f89bffa0ecc4b5877f1a701ce2d844c5a3/ext/opcache/zend_accelerator_util_funcs.c#L373-L375
[^1]: https://github.com/php/php-src/blob/eaac14a17a3d64c52ef1a0778bb65828cfce4eda/ext/opcache/ZendAccelerator.c#L2538-L2545
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.