History log of /php-src/ext/sockets/tests/socket_recv_overflow.phpt (Results 1 – 1 of 1)
Revision Date Author Comments
# e583890a 12-Oct-2024 David Carlier

Fix socket_recvfrom overflow on buffer size.

when passing PHP_INT_MAX for the $length param we get this (with ubsan)

`ext/sockets/sockets.c:1409:36: runtime error: signed integer ov

Fix socket_recvfrom overflow on buffer size.

when passing PHP_INT_MAX for the $length param we get this (with ubsan)

`ext/sockets/sockets.c:1409:36: runtime error: signed integer overflow: 9223372036854775807 + 1 cannot be represented in type 'long int'`

close GH-16382

show more ...