Skip to content

Overflow in gmp_random_bits #16501

Closed
Closed

Description

@YuanchengJiang

Description

The following code:

<?php
var_dump(gmp_random_bits(PHP_INT_MAX));

Resulted in this output:

gmp: overflow in mpz type
Aborted (core dumped)

PHP Version

nightly

Operating System

ubuntu 22.04

Activity

  1. self-assigned this
    on Oct 19, 2024
  2. linked a pull request that will close this issueFix GH-16501: gmp_random_bits overflow. #16503on Oct 19, 2024
  3. added a commit that references this issue on Oct 20, 2024
    9ca68e0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions