-
Notifications
You must be signed in to change notification settings - Fork 242
maint: build fix for ucptest and related code tyding up #782
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
Conversation
| for (i = 0; i < PRIV(utf8_table1_size); i++) | ||
| if ((int)cvalue <= PRIV(utf8_table1)[i]) break; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, this writes out a rather weird & ill-formed sequence if you pass in cvalue = 0xffff_ffff. However that value shouldn't be passed in, and the code doesn't do any bad loops or out-of-bounds access. So, I guess it's OK.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
correct, I almost threw it a PCRE2_ASSERT there as that function shouldn't be getting anything over 0x10ffff anyway AFAIK, at least when called from the library.
NWilson
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks!
|
Ah - the CI is failing. It looks like you need to find all the other uses of |
Since 9a868b0 (Tidy up config.h management (task from README) (PCRE2Project#658), 2025-01-11), it fails to build with an "#error" because "config.h" is no longer included directly. Move the check and change some types in the utf8 tables it uses through pcre2_ord2utf() so it better matches its current use, and other changes in pcre2test. While at it fix a typo in ManyConfigTests that was introduced in 0d0ac3a (Update EBCDIC support to support testing on normal ASCII systems (PCRE2Project#656), 2025-02-12)
Mainly fix a simple build failure because of the removal of the "config.h" include, but also some "fixes" for a "-Weverything" build and other tidying up of the code that made sense.