Skip to content

integer overflow in session.c:1353 #16290

Closed
@chongwick

Description

@chongwick

Description

The following code:

<?php
session_set_cookie_params(PHP_INT_MAX, '/', null, false, true);
session_start();
?>

Resulted in this output:

/home/dan/php-8.3.9/ext/session/session.c:1353:5: runtime error: signed integer overflow: 1728342208 + 9223372036854775807 cannot be represented in type 'long int'

Also, not tested with 8.3.12, yet.

PHP Version

8.3.9

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