Skip to content

Commit aa7f449

Browse files
committed
Fix undefined left shift in oci
The bit is shifted into the signed bit which is undefined. Make the integer explicitly unsigned before shifting.
1 parent d5373ea commit aa7f449

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/oci8/php_oci8_int.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ extern zend_class_entry *oci_coll_class_entry_ptr;
103103
* PHP_OCI_CRED_EXT must be distinct from the OCI_xxx privilege
104104
* values.
105105
*/
106-
#define PHP_OCI_CRED_EXT (1<<31)
106+
#define PHP_OCI_CRED_EXT (1u<<31)
107107
#if ((PHP_OCI_CRED_EXT == OCI_DEFAULT) || (PHP_OCI_CRED_EXT & (OCI_SYSOPER | OCI_SYSDBA)))
108108
#error Invalid value for PHP_OCI_CRED_EXT
109109
#endif

0 commit comments

Comments
 (0)