History log of /php-src/ext/standard/tests/filters/gh17037.phpt (Results 1 – 1 of 1)
Revision Date Author Comments
# 00f4881e 03-Dec-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-17037: UAF in user filter when adding existing filter name due to incorrect error handling

There are two functions that can each fail in their own way. If the last
function fails

Fix GH-17037: UAF in user filter when adding existing filter name due to incorrect error handling

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.

Closes GH-17038.

show more ...