Skip to content

gmp_export() can cause overflow #16411

Closed
Closed
@YuanchengJiang

Description

@YuanchengJiang

Description

The following code:

<?php
gmp_export(-9223372036854775808, 9223372036854775807, -9223372036854775808);

Resulted in this output:

/php-src/ext/gmp/gmp.c:1015:31: runtime error: signed integer overflow: 9223372036854775807 * 8 cannot be represented in type 'long'

PHP Version

nightly

Operating System

ubuntu 22.04

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions