Skip to content

Conversation

@carenas
Copy link
Contributor

@carenas carenas commented Oct 28, 2025

Only lightly tested, could be used as a basic "solution" for #831, that could be easily backported for 10.47.

Copy link
Collaborator

@zherczeg zherczeg left a comment

Choose a reason for hiding this comment

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

Much better!

@carenas carenas force-pushed the riscy branch 3 times, most recently from 29ef209 to e693142 Compare October 29, 2025 13:33
Copy link
Collaborator

@zherczeg zherczeg left a comment

Choose a reason for hiding this comment

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

I like this variant

@carenas carenas force-pushed the riscy branch 2 times, most recently from 86b2621 to e1007ac Compare October 30, 2025 10:35
@NWilson NWilson marked this pull request as ready for review October 30, 2025 11:13
Copy link
Contributor Author

@carenas carenas left a comment

Choose a reason for hiding this comment

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

needs squashing and a better commit message

the Armv8.1 extension writes "ARM-64 (LSE) 64bit (little endian + unaligned)".
If JIT support is not available, PCRE2_ERROR_BADOPTION is returned, otherwise
the number of code units used is returned. This is the length of the string,
plus one code unit for the NUL character.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is missing an historical overview and an explanation of why the use of static buffers is discouraged.

Copy link
Member

Choose a reason for hiding this comment

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

I'm happy with it. I can revise it in the next commit

…ARGET

Always ask `pcre2_config()` for the expected size of buffers and abort if
it is too small, effectively avoiding to do the validation after it was
written.

In preparation for deprecating the use of static buffers, increase
the documented max size for JITTARGET to the next power of 2.
@NWilson NWilson merged commit 6454fac into PCRE2Project:master Oct 30, 2025
38 checks passed
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