[php-src] PR #17576: Fix inline zend_string using struct padding

From: Date: Sun, 26 Jan 2025 00:57:28 +0000
Subject: [php-src] PR #17576: Fix inline zend_string using struct padding
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-30512@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/17576 Author: iluuu1994 As explained by Snape3058: On 64-bit machines, we typically have 7 bytes of padding between the zend_string.val[0] char and the following char[]. This means that zend_string.val[1-7] write to and read from the struct padding, which is a bad idea. Allocate the given string separately instead. Fixes GH-17564

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