[php-src] PR #20032: Fix GH-20002: build on BSD with MSAN
| From: | outtersg | Date: | Wed, 01 Oct 2025 14:20:57 +0000 |
| Subject: | [php-src] PR #20032: Fix GH-20002: build on BSD with MSAN | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-33441@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/20032
Author: outtersg
See #20002.
The
#ifs to have instrumented versions of strlcpy and strlcat was too inclusive, and
defined them even on *BSD that indeed have those already defined, resulting in "duplicate
symbol" at linking.
We use a really simple heuristic here (OSes that are _used_ to have instrumented
strlcpy and strlcat with their msan libraries).