Skip to content

Revert gmp overflow - #16934

Closed
devnexen wants to merge 3 commits into
php:PHP-8.2from
devnexen:revert_gmp_overflow
Closed

Revert gmp overflow#16934
devnexen wants to merge 3 commits into
php:PHP-8.2from
devnexen:revert_gmp_overflow

Conversation

@devnexen

Copy link
Copy Markdown
Member

No description provided.

@devnexen

devnexen commented Nov 25, 2024

Copy link
Copy Markdown
MemberAuthor

cc @Girgias is there any other need to revert a commit ? keeping as place holder for now.

@cmb69

Copy link
Copy Markdown
Member

See #16870 (comment). I still don't think we should revert.

@devnexen

Copy link
Copy Markdown
MemberAuthor

I keep as draft atm anyway.

@cmb69cmb69 linked an issue Nov 26, 2024 that may be closed by this pull request
@devnexen

Copy link
Copy Markdown
MemberAuthor

fair enough, once @Girgias validate the list of commits to revert, I ll proceed. Best we can, eventually, is to document the behavior ?

@GirgiasGirgias left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than the NEWS remark, LGTM.

Comment threadNEWS
Comment on lines 119 to -126
- GMP:
. Fixed floating point exception bug with gmp_pow when using
large exposant values. (David Carlier).
. Fixed bug GH-16411 (gmp_export() can cause overflow). (cmb)
. Fixed bug GH-16501 (gmp_random_bits() can cause overflow).
(David Carlier)
. Fixed gmp_pow() overflow bug with large base/exponents.
(David Carlier)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should edit the NEWS file for prior entries, better to leave them and add new NEWS entries.

@devnexen

Copy link
Copy Markdown
MemberAuthor

Merged with 45140e5

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gmp_pow(64, 11) throws overflow exception

3 participants

@devnexen@cmb69@Girgias