Skip to content

More ext-random integer overflow #9190

Closed
@iluuu1994

Description

@iluuu1994

Description

https://github.com/php/php-src/runs/7571517985?check_suite_focus=true

========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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions