[php-src] Issue #9190: More ext-random integer overflow

From: Date: Fri, 29 Jul 2022 08:04:59 +0000
Subject: [php-src] Issue #9190: More ext-random integer overflow
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-242062@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/9190 Author: iluuu1994 ### Description https://github.com/php/php-src/runs/7571517985?check_suite_focus=true ```log ========DIFF======== 002+ /home/runner/work/php-src/php-src/ext/random/engine_mt19937.c:175:2: runtime error: signed integer overflow: -9223372036854775808 + -9223372036854775808 cannot be represented in type 'long int' Random\Engine\Mt19937: success Random\Engine\PcgOneseq128XslRr64: success Random\Engine\Xoshiro256StarStar: success -- ========DONE======== FAIL Random: Randomizer: serialize [ext/random/tests/03_randomizer/serialize.phpt] ``` Note: This error occurred only in the tests with tracing JIT. /cc @zeriyoshi Thanks for taking a look! ### PHP Version master ### Operating System _No response_

« previous php.bugs (#242062) next »