[php-src] PR #24040: Fix: DEREF_AFTER_NULL.EX.COND
| From: | ushevchenko | Date: | Thu, 01 Oct 2026 08:40:32 +0000 |
| Subject: | [php-src] PR #24040: Fix: DEREF_AFTER_NULL.EX.COND | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-39028@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/24040
Author: ushevchenko
Problem:
PHPDBG_COMMAND(list) passes a NULL param to PHPDBG_LIST(lines), which dereferences it in switch
(param->type) without a NULL check. A NULL pointer may be dereferenced.
Solution: add a NULL check at the beginning of PHPDBG_LIST(lines): report an error and return
SUCCESS.
Signed-off-by: u.shevchenko@fobos-nt.ru
Signed-off-by: crystarm@altlinux.org
Fixes #24038