[php-src] PHP-8.3: Merge branch 'PHP-8.2' into PHP-8.3

From: Date: Thu, 04 Apr 2024 17:29:53 +0000
Subject: [php-src] PHP-8.3: Merge branch 'PHP-8.2' into PHP-8.3
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-127942@lists.php.net to get a copy of this message
Author: Niels Dossche (nielsdos) Date: 2024-04-04T19:29:29+02:00 Commit: https://github.com/php/php-src/commit/5daf080b6bfba0c2c4465bac64ce13b8524a69f9 Raw diff: https://github.com/php/php-src/commit/5daf080b6bfba0c2c4465bac64ce13b8524a69f9.diff Merge branch 'PHP-8.2' into PHP-8.3 * PHP-8.2: [ci skip] NEWS Fix shift out of bounds on 32-bit non-fast-path platforms (#10941) Changed paths: M NEWS M ext/mysqlnd/mysqlnd_portability.h Diff: diff --git a/NEWS b/NEWS index f3bfccba29fdc..421d706cf33e4 100644 --- a/NEWS +++ b/NEWS @@ -10,6 +10,9 @@ PHP NEWS . Fixed bug GH-13563 (Setting bool values via env in FPM config fails). (Jakub Zelenka) +- MySQLnd: + . Fix shift out of bounds on 32-bit non-fast-path platforms. (nielsdos) + - Opcache: . Fixed bug GH-13433 (Segmentation Fault in zend_class_init_statics when using opcache.preload). (nielsdos) diff --git a/ext/mysqlnd/mysqlnd_portability.h b/ext/mysqlnd/mysqlnd_portability.h index 295ce393a115a..11ebf4d1bf8ae 100644 --- a/ext/mysqlnd/mysqlnd_portability.h +++ b/ext/mysqlnd/mysqlnd_portability.h @@ -215,8 +215,8 @@ typedef union { *(((char *)(T))+1) = (char)(((A) >> 8));\ *(((char *)(T))+2) = (char)(((A) >> 16));\ *(((char *)(T))+3) = (char)(((A) >> 24)); \ - *(((char *)(T))+4) = (char)(((A) >> 32)); } while (0) -#define int8store(T,A) { uint32_t def_temp= (uint32_t) (A), def_temp2= (uint32_t) ((A) >> 32); \ + *(((char *)(T))+4) = sizeof(A) == 4 ? 0 : (char)(((A) >> 32)); } while (0) +#define int8store(T,A) { uint32_t def_temp= (uint32_t) (A), def_temp2= sizeof(A) == 4 ? 0 : (uint32_t) ((A) >> 32); \ int4store((T),def_temp); \ int4store((T+4),def_temp2); \ }

« previous php.cvs (#127942) next »