Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh17730: regcomp overflow/underflow #17744

Merged
merged 2 commits into from
Apr 25, 2020
Merged

gh17730: regcomp overflow/underflow #17744

merged 2 commits into from
Apr 25, 2020

Conversation

hvds
Copy link
Contributor

@hvds hvds commented Apr 23, 2020

Avoid overflow when setting last_start_max; add temporary underflow guard in scan_commit.

Copy link
Contributor

@khwilliamson khwilliamson left a comment

Choose a reason for hiding this comment

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

This is ok with me, after pat.t's plan is updated to account for the new test

@hvds
Copy link
Contributor Author

hvds commented Apr 23, 2020

This is ok with me, after pat.t's plan is updated to account for the new test

Ah bother, I thought I'd fixed that already.

hvds added 2 commits April 23, 2020 17:02
The dubious '((*ACCEPT)0)*' construct resulted on the one hand with
is_inf being false, but on the other setting pos_delta to OPTIMIZE_INFTY.
Numeric underflow on max_offset was being silently converted to
OPTIMIZE_INFTY by a misleading test. That test was removed in f6231eb,
exposing multiple issues.

This restores the test in a more direct form for 5.32; it should
be removed after 5.32 is released so we can continue the search for
the underlying issues.
@hvds hvds merged commit d23733d into blead Apr 25, 2020
@hvds hvds deleted the gh17730 branch April 25, 2020 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants