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 4a11068 commit 65ecf52Copy full SHA for 65ecf52
ext/sockets/sendrecvmsg.c
@@ -316,7 +316,9 @@ PHP_FUNCTION(socket_cmsg_space)
316
size_t size = entry->size + n * entry->var_el_size;
317
size_t total_size = CMSG_SPACE(size);
318
if (n > n_max /* zend_long overflow */
319
+#if SIZEOF_SIZE_T >= SIZEOF_ZEND_LONG
320
|| total_size > ZEND_LONG_MAX
321
+#endif
322
|| total_size < size /* align overflow */) {
323
zend_argument_value_error(3, "is too large");
324
RETURN_THROWS();
0 commit comments