We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f35e2a commit 0faa1d2Copy full SHA for 0faa1d2
ext/standard/basic_functions.c
@@ -112,6 +112,10 @@ PHPAPI php_basic_globals basic_globals;
112
#include "streamsfuncs.h"
113
#include "basic_functions_arginfo.h"
114
115
+#if __has_feature(memory_sanitizer)
116
+# include <sanitizer/msan_interface.h>
117
+#endif
118
+
119
typedef struct _user_tick_function_entry {
120
zend_fcall_info fci;
121
zend_fcall_info_cache fci_cache;
@@ -2263,6 +2267,10 @@ PHP_FUNCTION(getservbyport)
2263
2267
RETURN_FALSE;
2264
2268
}
2265
2269
2270
+ /* MSAN false positive, getservbyport() is not properly intercepted. */
2271
2272
+ __msan_unpoison_string(serv->s_name);
2273
2266
2274
RETURN_STRING(serv->s_name);
2275
2276
/* }}} */
0 commit comments