Skip to content

Conversation

@zherczeg
Copy link
Collaborator

If this fixes the problem in #874, maybe this could be a candidate for maintenance patch.

Copy link
Member

@NWilson NWilson left a comment

Choose a reason for hiding this comment

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

I agree, I'll tag it for backporting since it affects match correctness. Thanks for fixing so quickly.

@zherczeg
Copy link
Collaborator Author

The static analyzer complains about non signed packages. Probably it needs some update.

repeat = GET2(cc, 1);
if (repeat <= 0)
{
repeat = 1;
Copy link
Contributor

@carenas carenas Jan 24, 2026

Choose a reason for hiding this comment

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

considering that this code was released with 10.41, is the bug really a regression for 10.45?
nevermind, had to remember that we have a non linear history now:

$ git describe --tags 6f2da25f0
pcre2-10.44-145-g6f2da25f
$ git describe 6f2da25f0
pcre2-10.40-466-g6f2da25f

Copy link
Member

Choose a reason for hiding this comment

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

I will recommend it for backporting as far back as the bug goes. The original report just says 10.45+, but if it affects earlier, I'll check the patch and see what's needed.

Copy link
Contributor

Choose a reason for hiding this comment

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

the original report was correct about the versions affected, but seem to had gotten the wrong changeset as a culprit.

the code that was patched was released with 10.45 (which is what 10.44 tag + 145 commits) means in the output of git describe --tags

@zherczeg
Copy link
Collaborator Author

I plan to land this patch. Does anybody has any objection?

@NWilson
Copy link
Member

NWilson commented Jan 24, 2026

I'm happy, I approved

@zherczeg zherczeg merged commit 7a33b22 into PCRE2Project:main Jan 25, 2026
19 of 20 checks passed
@zherczeg zherczeg deleted the repeat_fix branch January 25, 2026 05:38
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