Merge branch 'PHP-8.3'

* PHP-8.3:
  Fix MSAN getservbyport() false positive
  Fix uninitialized CG(zend_lineno)
  Fix uninitialized EG(user_error_handler_error_reporting)
This commit is contained in:
Ilija Tovilo 2024-09-09 19:35:09 +02:00
commit 6ed730eb59
No known key found for this signature in database
GPG key ID: 5050C66BFCD1015A
2 changed files with 10 additions and 0 deletions

View file

@ -117,6 +117,10 @@ PHPAPI php_basic_globals basic_globals;
#include "zend_frameless_function.h"
#include "basic_functions_arginfo.h"
#if __has_feature(memory_sanitizer)
# include <sanitizer/msan_interface.h>
#endif
typedef struct _user_tick_function_entry {
zend_fcall_info fci;
zend_fcall_info_cache fci_cache;
@ -2233,6 +2237,10 @@ PHP_FUNCTION(getservbyport)
RETURN_FALSE;
}
/* MSAN false positive, getservbyport() is not properly intercepted. */
#if __has_feature(memory_sanitizer)
__msan_unpoison_string(serv->s_name);
#endif
RETURN_STRING(serv->s_name);
}
/* }}} */