[php-src] PR #15138: Fix GH-15137: Unexpected null pointer in Zend/zend_smart_str.h
| From: | nielsdos | Date: | Sun, 28 Jul 2024 11:37:04 +0000 |
| Subject: | [php-src] PR #15138: Fix GH-15137: Unexpected null pointer in Zend/zend_smart_str.h | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-27532@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/15138
Author: nielsdos
This regressed when I optimized $wholeText. The previous code used xmlStrcat which implicitly
checked for a NULL argument, but now it's a direct memcpy which you shouldn't pass null
pointers to, although it won't result in a crash because memcpy doesn't do anything if the
length is 0.