[php-src] PR #21388: Fix memory leak in shm_get_var() when variable is corrupted
| From: | ndossche | Date: | Sun, 08 Mar 2026 22:02:04 +0000 |
| Subject: | [php-src] PR #21388: Fix memory leak in shm_get_var() when variable is corrupted | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-35138@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21388
Author: ndossche
This path wasn't tested (clearly).
To trigger this we use FFI, which seemed like the easiest way that doesn't involve using
another process messing with the shared memory.
There are more mistakes against php_var_unserialize to be found, but it just takes a while to come
up with a test that triggers the necessary code paths.