History log of /PHP-8.2/ext/standard/tests/strings/substr_int_min.phpt (Results 1 – 1 of 1)
Revision Date Author Comments
# 85ffe8dc 18-Feb-2021 Nikita Popov

Avoid signed integer overflow in substr()

Perform negation after the (size_t) cast rather than before,
so as to avoid a signed integer overflow for PHP_INT_MIN.

Fixes oss-fuzz #

Avoid signed integer overflow in substr()

Perform negation after the (size_t) cast rather than before,
so as to avoid a signed integer overflow for PHP_INT_MIN.

Fixes oss-fuzz #31069.

show more ...