File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ PHP NEWS
1414 array). (ilutov)
1515 . Fixed bug GH-19480 (error_log php.ini cannot be unset when open_basedir is
1616 configured). (nielsdos)
17+ . Fixed bug GH-20002 (Broken build on *BSD with MSAN). (outtersg)
1718
1819- Curl:
1920 . Fix cloning of CURLOPT_POSTFIELDS when using the clone operator instead
Original file line number Diff line number Diff line change @@ -505,8 +505,10 @@ ZEND_API zend_string *zend_string_concat3(
505505 return res ;
506506}
507507
508- /* strlcpy and strlcat are not intercepted by msan, so we need to do it ourselves. */
509- #if __has_feature (memory_sanitizer )
508+ /* strlcpy and strlcat are not always intercepted by msan, so we need to do it
509+ * ourselves. Apply a simple heuristic to determine the platforms that need it.
510+ * See https://github.com/php/php-src/issues/20002. */
511+ #if __has_feature (memory_sanitizer ) && !defined(__FreeBSD__ ) && !defined(__NetBSD__ ) && !defined(__APPLE__ )
510512static size_t (* libc_strlcpy )(char * __restrict, const char * __restrict, size_t );
511513size_t strlcpy (char * __restrict dest , const char * __restrict src , size_t n )
512514{
You can’t perform that action at this time.
0 commit comments