From aa7f4497bfd78b0bf3981ce94789a3093b55f92a Mon Sep 17 00:00:00 2001 From: Ilija Tovilo Date: Wed, 7 Sep 2022 22:55:28 +0200 Subject: [PATCH] Fix undefined left shift in oci The bit is shifted into the signed bit which is undefined. Make the integer explicitly unsigned before shifting. --- ext/oci8/php_oci8_int.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/oci8/php_oci8_int.h b/ext/oci8/php_oci8_int.h index 825437bc570..55eb8de6b4b 100644 --- a/ext/oci8/php_oci8_int.h +++ b/ext/oci8/php_oci8_int.h @@ -103,7 +103,7 @@ extern zend_class_entry *oci_coll_class_entry_ptr; * PHP_OCI_CRED_EXT must be distinct from the OCI_xxx privilege * values. */ -#define PHP_OCI_CRED_EXT (1<<31) +#define PHP_OCI_CRED_EXT (1u<<31) #if ((PHP_OCI_CRED_EXT == OCI_DEFAULT) || (PHP_OCI_CRED_EXT & (OCI_SYSOPER | OCI_SYSDBA))) #error Invalid value for PHP_OCI_CRED_EXT #endif