Skip to content

Signed integer overflow in ext/calendar/jewish.c:439 #16234

@YuanchengJiang

Description

@YuanchengJiang

Description

The following code:

<?php
jewishtojd(1218182888, 1, 1218182888);

Resulted in this output:

/php-src/ext/calendar/jewish.c:439:21: runtime error: signed integer overflow: 64114888 * 45971 cannot be represented in type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /php-src/ext/calendar/jewish.c:439:21

PHP Version

PHP 8.4.0-dev

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