[php-src] PR #19334: Poison VM stack
| From: | arnaud-lb | Date: | Thu, 31 Jul 2025 17:47:44 +0000 |
| Subject: | [php-src] PR #19334: Poison VM stack | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-32739@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/19334
Author: arnaud-lb
Use the ASAN interface to poison new VM stack pages and poped frames. This is useful because without
this instrumentation, ASAN considers memory regions past the current frame as writeable (since we
allocate one page at a time), and also initialized/readeable if calls have used them before.
I extracted this from the partials implementation, for which it has been useful to spot issues. This
was before https://github.com/php/php-src/pull/18858 was
published, but I still took a little bit of inspiration from it while extracting this PR.