[php-src] PR #17038: Fix GH-17037: UAF in user filter when adding existing filter name due to incorrect error handling
| From: | nielsdos | Date: | Tue, 03 Dec 2024 21:52:49 +0000 |
| Subject: | [php-src] PR #17038: Fix GH-17037: UAF in user filter when adding existing filter name due to incorrect error handling | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-29877@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/17038
Author: nielsdos
There are two functions that can each fail in their own way. If the last function fails we have to
remove the filter entry from the hash table, otherwise we risk a UAF. Note also that removing the
entry from the table on failure will also free its memory.