[php-src] PR #17471: Fix potential OOB when checking for trailing spaces

From: Date: Tue, 14 Jan 2025 14:22:35 +0000
Subject: [php-src] PR #17471: Fix potential OOB when checking for trailing spaces
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-30384@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/17471 Author: cmb69 If path_len is zero, we must not access path, let alone try to subtract -1 from it. Since path and path_len are supposed to come from a zend_string, this is not a security issue. --- Note that I'm not 100% sure whether the patch is correct, since php_win32_check_trailing_space apparently does not only check for *trailing* spaces, but also for *leading* spaces.

« previous php.git-pulls (#30384) next »