mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
de77344de2
Errors related to invalid format strings (unlike data mismatch errors) should throw ValueError. Closes GH-6185.
13 lines
250 B
PHP
13 lines
250 B
PHP
--TEST--
|
|
Bug #78833 (Integer overflow in pack causes out-of-bound access)
|
|
--FILE--
|
|
<?php
|
|
try {
|
|
var_dump(pack("E2E2147483647H*", 0x0, 0x0, 0x0));
|
|
} catch (ValueError $e) {
|
|
echo $e->getMessage(), "\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
Type E: too few arguments
|