feat(icu): implement UTS46 IDNA domain conversion #19562

Open
IvanFogel wants to merge 189 commits from upstream-pr/19562 into main
IvanFogel commented 2026-11-13 14:59:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by IvanFogel on 2026-11-13T14:59:09Z.


What

IDNA conversion now retains the native object while it runs. Closing a guest handle removes it from the registry and releases the native object after unlocking. An allocator callback can use another UIDNA handle during release. Review

November 27 merge order. #27656 covers the same four UTS46 exports. I proposed landing this PR after #16971 and retaining the closed-handle and guest-NID tests in the combined version. The order is awaiting a response. Coordination with Ynryo

Each IDNA open now returns a distinct guest handle. Closing it retires the guest handle immediately. ICU releases the native object once any active conversion has finished. Reusing the native allocation cannot revive the old guest handle.

The break iterator now calls ICU for a locale name only after checking that the index is within the reported list. For a healthy list, negative indices and the index equal to the count still raise the guest argument error. Larger indices return null. If locale data cannot initialize, the wrapper returns null without a name lookup. ICU 78.1 already returns null for an index greater than the count in uloc_getAvailable. The wrapper now handles that case itself. Review on the shared prerequisite.

November 20 integration. This branch includes main at fd7fe562eded and the converter-alias data and tests from #16971 at c1785962ce53. The four UTS46 IDNA guest exports and their NID imports remain in this branch. The two data-registration NIDs now use the shared ICU 78 implementation and check guest status storage. #19413 closed unmerged and #20395 merged. Earlier measurements are dated below.

Implement the four existing UTS46 IDNA open/close and domain-conversion exports over the pinned official ICU78.1 source backend and its source-built normalization data. Keep checked guest buffers/status/info, private owned handles and native options/error flags. Native Unicode17 behavior remains unverified against console ICU68/Unicode13; preserve that debt.

Earlier integration notes (historical pins)

Includes the actual full refreshed #16971 history at 657f3899c37455b41d553ae7ef59e48b23459cba, retaining all eight Alex Whitehouse commits/authorship. No selectively copied data backend or stub replacement. #19413 independently competes with the data/filter entrypoint; no landing order or agreement with its author has been established. This PR remains Draft pending that dependency and overlap handling.

Source review exposed an explicit-length input allocation before guest-memory validation. Read bounded stack chunks before growing the UTF-16 string, preserving arbitrary valid explicit lengths and embedded NULs. Invalid guest input refuses through the existing checked-copy mechanism. No title-unblock or performance claim.

Integration on 2026-11-15. Qualified submitted commit e3e9ee86a0738e4dafd479533f97e1a357f90507 is based on tested main 4da77d3353c9c9f59f15436af86f44e4bb3ee074 and retains the full original feature/donor history. The shared data prerequisite is #16971 at b35ad18125f8a8e28aded9bae403c2e6ed33afe7; #20395 at 26e33a85262270bbeb619cc7f45edbb31ee84dc8 supplies the independently tested Windows unsigned-parser saturation correction. Current dependencies: #16971, #20395. Draft status and the previously documented peer-composition/platform gates remain. No author agreement or native Windows execution is claimed.

2026-11-17 integration: submitted head 0cb65598cf64eb87b7983e37c4c27a6ad73278de merges main 050cdf95addcb05b1c663587ab921216707623fe and preserves the original prerequisite histories. The full ICU data package now replaces both the old stub data and main's subset provider, leaving exactly one icudt78_dat definition while retaining main's normalization, properties, default-locale and UTC-time behavior.

Tested

Commit ce6c41fa36b4. The added fixture waits for a conversion on another handle during allocator release. On the prior implementation it failed its bounded wait. On this commit it passed. All 113 selected Linux ICU cases and 113 MinGW/Wine CTests passed. The public-header checks and standalone ICU header compilations also passed on both platforms.

On November 25 I integrated main 9c0d60cbfb6e and the complete ICU data prerequisite #16971 at eddb65df5f42. The four IDNA exports now compose with current main and the complete upstream ICU data prerequisite. The supplemental-region regression checks inference from packaged likely-subtag data. The locale-table fixture now requests a missing German regional bundle and exercises a real fallback with the original expected warning and translation.

At cda1f7890c69, all 113 registered guest ICU CTests passed on Linux x86-64 and all 112 passed with MinGW-w64 under Wine. Both builds passed the public-header audit and compiled all 57 ICU public headers independently. The compiled library exported each of 4 audited guest NIDs exactly once on each platform. This run used synthetic data and the bundled ICU dataset. Native Windows, console and title execution remain unmeasured.

At 89e58193ae5e I restored the indentation of two existing ICU source entries to match main. The CMake source lists are unchanged. I verified this branch merges cleanly with the locale-table fallback in #26259 at b47b9b838db2. Regenerating the Linux and MinGW build files preserved the order of ICU objects and the compiler and archiver commands on both platforms. With the existing binaries, 11 focused Linux CTests and 10 MinGW CTests under Wine passed.

After the November 22 review, the file-access wrapper on e45ab8a308bb passes a non-null local status to ICU and returns a changed backend status to a caller that supplied writable status storage. It preserves a pre-existing guest error and still applies the requested mode when the caller omits the status. The pinned setter only changes the mode. The recording-backend test covers all four access modes with a missing, successful, warning, or failed guest status and checks unchanged, success, warning, and error results from the backend. Read-only and inaccessible guest storage prevent dispatch. The earlier revision failed on Linux and Wine. The updated prerequisite #16971 at ab382ee5829f also tests allocation after reconfiguring ICU. All 105 Linux and 104 MinGW/Wine guest ICU tests passed on main 4c260ec7de72, along with the public-header and feature-export checks. Review · Pinned setter

On November 22, I integrated main 70cca973b49f and the break-iterator and ICU data prerequisite #16971 at f59b5fbe7fa2. The build instructions retain main’s minimum CMake versions for bundled dependencies and the native compiler requirements for ICU data tools. Both the new ICU keyword-list registration and the prerequisite’s right-to-left locale test remain registered. On the submitted revision 7a22b229b17a, 105 Linux guest ICU tests and 104 MinGW/Wine guest ICU tests passed. Both platforms passed the public-header audit and exported all 4 feature NIDs exactly once. The tests include the converter-alias comparison and bundled-locale direction. These Windows binaries ran under Wine.

On November 21, I updated udata_setFileAccess in 61771e8e28af on main 6f5c412af786. Host ICU now receives a valid local status variable. A guest may pass null and still set the requested access mode, as on main. A supplied guest status retains its original value. The regression test checks all four access modes, the status received by the backend, and guest status preservation. Pinned ICU 78.1 assigns the mode without reading the status argument. Review · Pinned ICU setter

All 100 Linux guest ICU tests and all 99 MinGW/Wine guest ICU tests passed, along with the public-header checks on both. Both binaries export all 4 feature NIDs exactly once.

On November 21 I tested f5ade9d64673 with main 6f18d49a833e and the updated break-iterator prerequisite #16971 at bdbfcb2c98fd. All 99 guest ICU tests passed on Linux x86-64. The MinGW-w64 build passed all 98 guest ICU tests under Wine. Both public-header checks passed, and each build exported the 4 feature NIDs exactly once.

The locale-direction test now checks the expected direction for packaged ICU data and retains the missing-data checks for the reduced configuration. The earlier unconditional missing-data expectation failed on the packaged build.

The IDNA stale-handle regression and the guest-default break-iterator cases ran on both builds. The full data package and the four IDNA guest exports are present.

IDNA handles at 02952742f66f. Closing a handle now retires its guest identity even when ICU reuses the same allocation on the next open. A regression test supplies an ICU allocator that returns one block for two successive opens. The baseline failed the distinct-identity check. The updated test checks that the old handle is rejected, both native objects are released, and the second handle still applies its own UTS46 options. Linux passed all 94 guest ICU tests, the public-header audit and standalone compilation of 53 ICU headers. MinGW-w64 under Wine passed all 93 guest ICU tests and the public-header audit. Each patched library exports each of the four IDNA NIDs once. Native Windows, console and title behavior remain unmeasured.

November 20 locale bounds at 2298739da943, based on 3a1b27b9d2e2. A counting stand-in exercised 21 combinations of populated, empty and unavailable locale data and indices from INT32_MIN to INT32_MAX. Before the change 13 out-of-range cases reached the stand-in. After the change none did, both valid indices still reached it, and all 21 responses matched. The checked-in public API test also exercises both signed extremes with real ICU data. All 93 guest ICU CTests passed on Linux and all 92 passed in a MinGW-w64 build under Wine. The public-header audit passed on both, and the Linux standalone ICU header compilations passed. This local run did not use native Windows or a console.

November 20, 7be3af0ba177. Native Linux passed 93/93 guest ICU tests, the repository-wide public-header audit, and standalone compilation of all 53 selected ICU headers. The MinGW-w64 build ran 92/92 guest ICU tests under Wine. Its CTest selection also passed the public-header audit. Both patched libraries export the data-registration NIDs wHZwCpZVcGI and mCyTdtewGpk exactly once. The new guest registration case covers an inaccessible status pointer. The conventions and debt checks passed. I did not run this head on native Windows, on a console, or with a title.

Refresh at c33851d4d6 against main fa0b7e3ce4. Tested the merged ICU field-position, resource, locale and converter work alongside this feature. This head includes the full current #16971 prerequisite at 54768514e6. Its tracked source is byte-identical to tested commit 22599ff2e1. The packaged converter-name test compares guest results with the pinned ICU alias data. The reduced-data and injected-fixture modes retain their separate coverage. All 91 registered ICU CTests passed on Linux. All 90 passed in the MinGW-w64 build under Wine. This qualification used no native Windows machine or commercial title.

Optional-review maintenance, 2026-11-17: exact head 01fbc3afc48de8543d61fc5d6a7d5f48eab0c034, following published 1858e6e8b1aab4e51a65cd4f3cc5a0b486239fd4. The new read-only review reported no blocking finding and identified two optional points. This update removes the duplicate Configuration.cpp token from target_sources; its original add_library registration stays. The owned data-stack debt fragment now explicitly records unguarded guest status/input/data pointers and forged, freed or concurrently closed break iterators in the inherited BreakIterator/Data wrappers. The checked IDNA registry/copies do not cover those wrappers. This records a known host-fault boundary; it does not implement pointer or iterator-lifetime hardening.

Fresh Linux 81/81 and MinGW/private Wine 80/80 selected CTests pass at this exact head, with zero failures or selected skips, against the same tested main 47e2f3bca828b2a6ccbb3adf0bff33d559bfdd09 as the preceding refresh. All C++ implementations, headers, exports, backend/data-provider sources are byte-identical to the prior submitted head. Each actual archive still has one full icudt78_dat provider. The scoped debt fold and current conventions/whitespace pass; one unchanged inherited debt-length warning remains. Independent bounded source/debt review found no blocking finding. Full exact-head results, CTest logs and review.

Native Windows/macOS, console/title and outside-peer composition were not run. Wine is not native Windows qualification. Existing Draft/dependency/peer-review gates remain. Downstream feature heads retain the prior complete implementation history; this small registration/debt tail is not claimed as their ancestry. Later current-main mergeability is checked separately from these pinned runtime results.

Earlier exact-head qualification and integration dispositions

Current public-header maintenance qualification, 2026-11-17: exact head 1858e6e8b1aab4e51a65cd4f3cc5a0b486239fd4, integrating tested main 47e2f3bca828b2a6ccbb3adf0bff33d559bfdd09. The only manual conflict resolution keeps main's umbrella header intact and inserts each existing feature-only include once before ConverterHelpers; main's new UtfConversions declarations remain reachable. Refreshed date/numbering prerequisite history is retained downstream. No outside feature branch was imported.

  • Linux: 81/81 selected CTests pass. MinGW/private Wine: 80/80 pass. Zero selected failures or skips. Fresh main baseline is66/66 on each platform. The full registered ICU family, parser callers and native public-header audit ran at these exact commits; ICU headers also compiled independently with native GCC and MinGW.
  • All35 scoped source checks pass across the seven refreshes. Independent header/merge review found no introduced Critical/Important/Minor finding and verified unique include unions, main/feature header blobs, dependency ancestry and only-header manual edits.
  • Actual data archive still has exactly one strong full-data provider, retains nfkc.nrm,nfkc_cf.nrm,uemoji.icu,ulayout.icu, and introduces no native ICU export/import leak relative to baseline. The tested full-data provider selection itself was not manually changed.
  • Complete fresh qualification metadata and selected logs. These results supersede the older exact-head counts folded below. Native Windows/macOS, real titles and joint outside-peer execution were not run; Wine is not native Windows qualification. Draft and existing dependency/human-review gates remain.

The latest scoped peer audit pins #22237 at 489c8fde3d860b4e837ee3b57638960518991c20. Its calendar change corrects a placeholder parameter type rather than implementing our real getter. Future composition must preserve real feature bodies, its recovered-type/header/callback/status changes, the full ICU backend source union and exactly one full-data provider. This peer composition and landing order are unqualified; no new formal prerequisite or outside-author agreement is asserted. Existing #18208/#19435 data/source/filter and recorded peer gates remain.

Earlier pinned qualification and review dispositions (historical evidence)

2026-11-17 exact-head qualification: 0cb65598cf64eb87b7983e37c4c27a6ad73278de, based on tested main 050cdf95addcb05b1c663587ab921216707623fe.

  • Linux: 79/79 selected CTests pass. MinGW/private Wine: 78/78 pass. No selected skips or failures. Selection includes every registered ICU case, focused math/wide-string/Dinkumware/multibyte callers, and applicable public-header/platform controls.
  • Archive inspection finds exactly one full-data provider. Built package entries retain nfkc.nrm, nfkc_cf.nrm, uemoji.icu and ulayout.icu; normalization/property/null-locale/UTC-time regressions pass.
  • Affected public headers compile independently. ELF/PE native-ICU symbol exposure matches the tested main baseline; no host ICU DLL dependency was introduced.
  • Conventions, committed whitespace and scoped/global debt checks pass. Independent integration review found no required source changes.
  • The previous Windows guest_multibyte_locale failure came from a change already reverted on main; this merged candidate passes that regression locally on Linux and Wine. Native Windows/macOS full CI and console execution were not run here.

Exact pins, platform results and complete Linux/Wine CTest logs.

The input-allocation regression is registered only on Linux; it is not a Wine or native Windows result.

Keep Draft for #16971 and the recorded ICU peer/data/platform composition gates; #20395 has merged. Textual mergeability does not establish joint qualification with every current peer; previous external/composition receipts below keep their original pins.

Historical exact-head qualification

2026-11-16 maintenance — exact submitted/tested head a1f3307cf6573dca36562339f685937b58d470c8, main e236a801f88183df3d215af0d450fb20baf9edc3. Merge main while preserving the original feature and prerequisite histories. Resolve the build-documentation conflict by retaining the two real ICU host-compiler options without reviving the removed FFmpeg prebuilt option. Consolidate the overlapping callable-inventory debt operations, retaining current main's complete locale/property exclusions plus the data/topic exclusions.

Linux x86-64 / GCC 16.2.1 Release full runtime: 73/73 CTests pass. MinGW 16 / private headless Wine 11.21: 72/72 pass. No selected skips; every test finishes below 30 s. All registered ICU cases, patched-NID fixtures and relevant math/wide-string/Dinkumware parser callers run; Linux runs the public-header audit, Wine runs the FreeBSD clock control. 47 ICU header units compile independently on each toolchain. ELF/PE inspection confirms no new native ICU backend exports or system-ICU imports.

Fresh main control: Linux 58/58 pass; Wine 56/58 pass with the two reproduced parser failures. Independent integration review found no material source defect. Draft and existing peer/prerequisite integration gates remain; original dependency implementations and maintenance merge histories are retained, without claiming ancestry of the final parent debt-only tail tips. Native Windows, macOS, console/title and performance were not measured.

Current conventions and committed whitespace checks pass. The scoped ICU debt fold passes. The global fold repeats main's unrelated stale NKWebKit fragment error (5933 of the 8703); that inherited failure was not changed or reported as green.

A later mechanical merge check against main 4c976e99394db1546555ca53fd575912d4b819a8 is clean. Those later changes were not rerun as a combined runtime build.

Full exact-head results, matched baseline failures, validation logs, public-header/symbol audits and integration review. Historical results below retain their own pins and were not rerun as native-platform reports.

Historical qualification at its original exact commits

2026-11-15 refresh — exact submitted commit e3e9ee86a0738e4dafd479533f97e1a357f90507. Linux GCC 16.2.1, Release/full source-built dependencies: 65/65 CTests pass, no skips. MinGW GCC 16/private headless Wine 11.21 Staging: 64/64 CTests pass, no skips, on the same standalone branch commit, including its declared prerequisites. All registered ICU cases and the expanded math/wide-string/Dinkumware parser callers run; Linux also runs the full public-header audit and Wine runs the FreeBSD clock regression. 45 ICU header units compile independently on each toolchain. The Linux-only IDNA allocation-stress case is not registered on Windows; it was not skipped by Wine. Native Windows was not run.

The matching main control at 4da77d3353c9c9f59f15436af86f44e4bb3ee074 passes 47/47 Linux cases; Wine passes 46/47 with the reproduced guest_icu_cstring negative-overflow failure. The failing baseline is preserved. #20395 corrects that behavior, and the candidate passes all four affected public caller suites. ELF audits show no native ICU78 backend exports; PE retains the eight preexisting RTTI/name exports from main and imports no system ICU DLL.

The ICU implementation, tests, data filters and build inputs are byte-identical to the reviewed pre-donor candidates. The updated prerequisite is composed without duplicate common test registrations; debt fragments preserve main's consolidated files, exact throwing inventories and each topic's original data scope. Current conventions, whitespace and debt-fold checks pass. Independent whole-change and integration-tail reviews found no required source changes.

A later mechanical merge check against main f61793afa6d22732addd93e3b27553fc5deeab2f is clean. That main adds independent CodePointTrie source/test/umbrella registrations; those later-main additions were not rerun as a combined runtime build here. They are separate from the exact tested commits above. Existing Draft integration gates remain.

Full verbose logs, exact commits, header/symbol audits, source/debt checks and independent reviews. Across all six refreshed branches: 436 Linux and 435 MinGW/Wine passing CTests. No console, macOS, title-unblock or performance claim. Historical hosted Windows/AMD reports and composed runs below retain their old commit pins and were not rerun on this commit.

Historical qualification and reports (original exact commits)

Latest local qualification (2026-11-13): submitted head 22025ce53e1cdbff535ca7f8a0c27aec96886b5f contains main snapshot 496d57b47a9b2771146d2882c48d599aca8ce883, including upstream CES revert bbc937d05536ad0dce4e7a91b90e0d20cbd21360. Feature implementation/tests and all existing non-merge commits are unchanged; conventions and whitespace checks pass. Linux: all18 ICU tests plus the actual public_headers audit and four CES regressions pass (23 total), including bounded input-allocation, native/conformance, full-data/break and functional patched-NID coverage. Source-built package contains uts46.nrm; ELF exports contain no native ICU78 names. MinGW16.2.0-2.1/private headless Wine11.21 passes17 ICU plus four CES tests (21 total) on evidence composition7299a75a914256394279872632a76f936f4917ee, which adds separate #19519/d43d250189579f1c475481416841cdbe099cf099 and #19625/4f4fa0b13e629d1de1dc3de5f8c5801e154e9b40. ICU source/test/header/data paths are byte-identical to this submitted head. Eight inherited PE normalizer RTTI/name exports match the recorded main667dbde5131d30a7db7a22bf1147889cc1ee4ec7 metadata baseline exactly; no new native ICU function exports. This is composed Wine evidence, not native Windows or standalone full-Windows qualification. Keep Draft with #16971 and the previously documented peer-data composition gates.

Exact pins and full qualification logs. Prior external Windows/macOS reports below remain historical; this update does not claim hosted full CI on the new head, author agreement, a commercial-title unblock or FPS improvement.

CachyOS/Arch Linux x86-64, kernel 7.3.3-1-cachyos, GCC 16.2.1 Release. Tested exact head 65a90410b8a01aaecb652753ec8f21e8041c6594, retaining refreshed #16971 head 657f3899c37455b41d553ae7ef59e48b23459cba and its main base 423f20f613e562303f8c80192a48b78e7f0647d4. Both original and reissued eight-commit prerequisite histories retain Alex Whitehouse's authorship.

  • All 18 selected ICU CTests pass, without skips: IDNA, recovered signatures, break iteration/Unicode fixtures, allocator/data registration, normalization and sets. Built the six affected runtime/test targets using the official ICU 78.1 source backend.
  • Source-built host tools generate the embedded package; its manifest contains uts46.nrm. The actual patched-library NID conversion succeeds. Dynamic symbol inspection finds no exported ICU _78/icudt78 backend symbols.
  • Three Unicode 17 conformance modes each cover 6,391 source rows. All rows are compared against the native backend; error-free rows also check the Unicode expected result. This does not independently establish exact console-version error flags or ICU68/Unicode13 parity.
  • The new bounded allocation regression failed on both wrappers before the fix: each child returned allocation-error status 7 instead of refusing unreadable input. Each child's address-space headroom is capped at 8 MiB; no gigabyte allocation experiment was performed. After the fix both conversions refuse before growing the declared input. A separate portable 1,025-unit native differential case preserves an embedded NUL and suffix, exact-capacity behavior, termination and surrounding guards.
  • Updating to the prerequisite's refreshed history exposed duplicate CMake test registrations. Configure reproduced the duplicate-target/test errors; removing only the duplicate footer preserves the original declarations. The exact resulting combination passes the full 18-case selection.
  • Conventions against origin/main and whitespace checks pass. Windows, macOS, sanitizers and physical-console parity were not run.

Exact-commit full CTest logs, bounded RED/GREEN, source-data manifest and symbol evidence.

Final canonical overlap scan on this head inspected 1,513 open PRs and reported 19 peers; 17 conflict with the base and remain automatically uncompared. All 19 full peer heads and shared-path sets match the existing frozen manual review; no new or changed peer delta remains. The imported current #16971 head is now an ancestor and no longer a competing overlap. This is manual duplicate-scope clearance, not an automatic clean scan or joint runtime qualification of those branches. #19413 remains a concrete unresolved composition: its private NFKC CommonData entrypoint conflicts with this full generated ICU data package. A future composition must retain its APIs/tests while using one full package entrypoint. Shared data/CMake integrations with sibling feature stacks remain unqualified. No agreement or landing order with other authors is claimed; keep Draft and Depends on #16971.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt and the licence notice of code adapted from upstream (see AGENTS.md)
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: #16971
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5297734698 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19562). Originally posted by [IvanFogel](https://github.com/IvanFogel) on 2026-11-13T14:59:09Z. --- ### What IDNA conversion now retains the native object while it runs. Closing a guest handle removes it from the registry and releases the native object after unlocking. An allocator callback can use another UIDNA handle during release. [Review](https://github.com/boykopovar/AnyPS5/pull/19562#pullrequestreview-6177241220) **November 27 merge order.** #27656 covers the same four UTS46 exports. I proposed landing this PR after #16971 and retaining the closed-handle and guest-NID tests in the combined version. The order is awaiting a response. [Coordination with Ynryo](https://github.com/boykopovar/AnyPS5/pull/27656#issuecomment-7220374906) Each IDNA open now returns a distinct guest handle. Closing it retires the guest handle immediately. ICU releases the native object once any active conversion has finished. Reusing the native allocation cannot revive the old guest handle. The break iterator now calls ICU for a locale name only after checking that the index is within the reported list. For a healthy list, negative indices and the index equal to the count still raise the guest argument error. Larger indices return null. If locale data cannot initialize, the wrapper returns null without a name lookup. ICU 78.1 already returns null for an index greater than the count in `uloc_getAvailable`. The wrapper now handles that case itself. [Review on the shared prerequisite](https://github.com/boykopovar/AnyPS5/pull/19628#pullrequestreview-5988788690). **November 20 integration.** This branch includes main at `fd7fe562eded` and the converter-alias data and tests from #16971 at `c1785962ce53`. The four UTS46 IDNA guest exports and their NID imports remain in this branch. The two data-registration NIDs now use the shared ICU 78 implementation and check guest status storage. #19413 closed unmerged and #20395 merged. Earlier measurements are dated below. Implement the four existing UTS46 IDNA open/close and domain-conversion exports over the pinned official ICU78.1 source backend and its source-built normalization data. Keep checked guest buffers/status/info, private owned handles and native options/error flags. Native Unicode17 behavior remains unverified against console ICU68/Unicode13; preserve that debt. <details> <summary>Earlier integration notes (historical pins)</summary> Includes the actual full refreshed #16971 history at `657f3899c37455b41d553ae7ef59e48b23459cba`, retaining all eight Alex Whitehouse commits/authorship. No selectively copied data backend or stub replacement. #19413 independently competes with the data/filter entrypoint; no landing order or agreement with its author has been established. This PR remains Draft pending that dependency and overlap handling. </details> Source review exposed an explicit-length input allocation before guest-memory validation. Read bounded stack chunks before growing the UTF-16 string, preserving arbitrary valid explicit lengths and embedded NULs. Invalid guest input refuses through the existing checked-copy mechanism. No title-unblock or performance claim. **Integration on 2026-11-15.** Qualified submitted commit `e3e9ee86a0738e4dafd479533f97e1a357f90507` is based on tested main `4da77d3353c9c9f59f15436af86f44e4bb3ee074` and retains the full original feature/donor history. The shared data prerequisite is #16971 at `b35ad18125f8a8e28aded9bae403c2e6ed33afe7`; #20395 at `26e33a85262270bbeb619cc7f45edbb31ee84dc8` supplies the independently tested Windows unsigned-parser saturation correction. Current dependencies: #16971, #20395. Draft status and the previously documented peer-composition/platform gates remain. No author agreement or native Windows execution is claimed. **2026-11-17 integration:** submitted head `0cb65598cf64eb87b7983e37c4c27a6ad73278de` merges main `050cdf95addcb05b1c663587ab921216707623fe` and preserves the original prerequisite histories. The full ICU data package now replaces both the old stub data and main's subset provider, leaving exactly one `icudt78_dat` definition while retaining main's normalization, properties, default-locale and UTC-time behavior. ### Tested Commit `ce6c41fa36b4`. The added fixture waits for a conversion on another handle during allocator release. On the prior implementation it failed its bounded wait. On this commit it passed. All 113 selected Linux ICU cases and 113 MinGW/Wine CTests passed. The public-header checks and standalone ICU header compilations also passed on both platforms. On November 25 I integrated main `9c0d60cbfb6e` and the complete ICU data prerequisite [#16971](https://github.com/boykopovar/AnyPS5/pull/16971) at `eddb65df5f42`. The four IDNA exports now compose with current main and the complete upstream ICU data prerequisite. The supplemental-region regression checks inference from packaged likely-subtag data. The locale-table fixture now requests a missing German regional bundle and exercises a real fallback with the original expected warning and translation. At `cda1f7890c69`, all 113 registered guest ICU CTests passed on Linux x86-64 and all 112 passed with MinGW-w64 under Wine. Both builds passed the public-header audit and compiled all 57 ICU public headers independently. The compiled library exported each of 4 audited guest NIDs exactly once on each platform. This run used synthetic data and the bundled ICU dataset. Native Windows, console and title execution remain unmeasured. At `89e58193ae5e` I restored the indentation of two existing ICU source entries to match main. The CMake source lists are unchanged. I verified this branch merges cleanly with the locale-table fallback in #26259 at `b47b9b838db2`. Regenerating the Linux and MinGW build files preserved the order of ICU objects and the compiler and archiver commands on both platforms. With the existing binaries, 11 focused Linux CTests and 10 MinGW CTests under Wine passed. After the November 22 review, the file-access wrapper on `e45ab8a308bb` passes a non-null local status to ICU and returns a changed backend status to a caller that supplied writable status storage. It preserves a pre-existing guest error and still applies the requested mode when the caller omits the status. The pinned setter only changes the mode. The recording-backend test covers all four access modes with a missing, successful, warning, or failed guest status and checks unchanged, success, warning, and error results from the backend. Read-only and inaccessible guest storage prevent dispatch. The earlier revision failed on Linux and Wine. The updated prerequisite #16971 at `ab382ee5829f` also tests allocation after reconfiguring ICU. All 105 Linux and 104 MinGW/Wine guest ICU tests passed on main `4c260ec7de72`, along with the public-header and feature-export checks. [Review](https://github.com/boykopovar/AnyPS5/pull/19628#pullrequestreview-6011448365) · [Pinned setter](https://github.com/unicode-org/icu/blob/049e0d6a420629ac7db77256987d083a563287b5/icu4c/source/common/udata.cpp#L1446-L1450) On November 22, I integrated main `70cca973b49f` and the break-iterator and ICU data prerequisite #16971 at `f59b5fbe7fa2`. The build instructions retain main’s minimum CMake versions for bundled dependencies and the native compiler requirements for ICU data tools. Both the new ICU keyword-list registration and the prerequisite’s right-to-left locale test remain registered. On the submitted revision `7a22b229b17a`, 105 Linux guest ICU tests and 104 MinGW/Wine guest ICU tests passed. Both platforms passed the public-header audit and exported all 4 feature NIDs exactly once. The tests include the converter-alias comparison and bundled-locale direction. These Windows binaries ran under Wine. On November 21, I updated `udata_setFileAccess` in `61771e8e28af` on main `6f5c412af786`. Host ICU now receives a valid local status variable. A guest may pass null and still set the requested access mode, as on main. A supplied guest status retains its original value. The regression test checks all four access modes, the status received by the backend, and guest status preservation. Pinned ICU 78.1 assigns the mode without reading the status argument. [Review](https://github.com/boykopovar/AnyPS5/pull/19635#pullrequestreview-6004284175) · [Pinned ICU setter](https://github.com/unicode-org/icu/blob/049e0d6a420629ac7db77256987d083a563287b5/icu4c/source/common/udata.cpp#L1446-L1450) All 100 Linux guest ICU tests and all 99 MinGW/Wine guest ICU tests passed, along with the public-header checks on both. Both binaries export all 4 feature NIDs exactly once. On November 21 I tested `f5ade9d64673` with main `6f18d49a833e` and the updated break-iterator prerequisite #16971 at `bdbfcb2c98fd`. All 99 guest ICU tests passed on Linux x86-64. The MinGW-w64 build passed all 98 guest ICU tests under Wine. Both public-header checks passed, and each build exported the 4 feature NIDs exactly once. The locale-direction test now checks the expected direction for packaged ICU data and retains the missing-data checks for the reduced configuration. The earlier unconditional missing-data expectation failed on the packaged build. The IDNA stale-handle regression and the guest-default break-iterator cases ran on both builds. The full data package and the four IDNA guest exports are present. **IDNA handles at `02952742f66f`.** Closing a handle now retires its guest identity even when ICU reuses the same allocation on the next open. A regression test supplies an ICU allocator that returns one block for two successive opens. The baseline failed the distinct-identity check. The updated test checks that the old handle is rejected, both native objects are released, and the second handle still applies its own UTS46 options. Linux passed all 94 guest ICU tests, the public-header audit and standalone compilation of 53 ICU headers. MinGW-w64 under Wine passed all 93 guest ICU tests and the public-header audit. Each patched library exports each of the four IDNA NIDs once. Native Windows, console and title behavior remain unmeasured. **November 20 locale bounds at `2298739da943`, based on `3a1b27b9d2e2`.** A counting stand-in exercised 21 combinations of populated, empty and unavailable locale data and indices from INT32_MIN to INT32_MAX. Before the change 13 out-of-range cases reached the stand-in. After the change none did, both valid indices still reached it, and all 21 responses matched. The checked-in public API test also exercises both signed extremes with real ICU data. All 93 guest ICU CTests passed on Linux and all 92 passed in a MinGW-w64 build under Wine. The public-header audit passed on both, and the Linux standalone ICU header compilations passed. This local run did not use native Windows or a console. **November 20, `7be3af0ba177`.** Native Linux passed 93/93 guest ICU tests, the repository-wide public-header audit, and standalone compilation of all 53 selected ICU headers. The MinGW-w64 build ran 92/92 guest ICU tests under Wine. Its CTest selection also passed the public-header audit. Both patched libraries export the data-registration NIDs `wHZwCpZVcGI` and `mCyTdtewGpk` exactly once. The new guest registration case covers an inaccessible status pointer. The conventions and debt checks passed. I did not run this head on native Windows, on a console, or with a title. **Refresh at `c33851d4d6` against main `fa0b7e3ce4`.** Tested the merged ICU field-position, resource, locale and converter work alongside this feature. This head includes the full current #16971 prerequisite at `54768514e6`. Its tracked source is byte-identical to tested commit `22599ff2e1`. The packaged converter-name test compares guest results with the pinned ICU alias data. The reduced-data and injected-fixture modes retain their separate coverage. All 91 registered ICU CTests passed on Linux. All 90 passed in the MinGW-w64 build under Wine. This qualification used no native Windows machine or commercial title. **Optional-review maintenance, 2026-11-17:** exact head `01fbc3afc48de8543d61fc5d6a7d5f48eab0c034`, following published `1858e6e8b1aab4e51a65cd4f3cc5a0b486239fd4`. The [new read-only review](https://github.com/boykopovar/AnyPS5/pull/19562#pullrequestreview-5937837974) reported no blocking finding and identified two optional points. This update removes the duplicate Configuration.cpp token from target_sources; its original add_library registration stays. The owned data-stack debt fragment now explicitly records unguarded guest status/input/data pointers and forged, freed or concurrently closed break iterators in the inherited BreakIterator/Data wrappers. The checked IDNA registry/copies do not cover those wrappers. This records a known host-fault boundary; it does not implement pointer or iterator-lifetime hardening. Fresh Linux **81/81** and MinGW/private Wine **80/80** selected CTests pass at this exact head, with zero failures or selected skips, against the same tested main `47e2f3bca828b2a6ccbb3adf0bff33d559bfdd09` as the preceding refresh. All C++ implementations, headers, exports, backend/data-provider sources are byte-identical to the prior submitted head. Each actual archive still has one full icudt78_dat provider. The scoped debt fold and current conventions/whitespace pass; one unchanged inherited debt-length warning remains. Independent bounded source/debt review found no blocking finding. [Full exact-head results, CTest logs and review](https://gist.github.com/IvanFogel/e6f86af45c5a2fc6a027931dc55d6ec4). Native Windows/macOS, console/title and outside-peer composition were not run. Wine is not native Windows qualification. Existing Draft/dependency/peer-review gates remain. Downstream feature heads retain the prior complete implementation history; this small registration/debt tail is not claimed as their ancestry. Later current-main mergeability is checked separately from these pinned runtime results. <details> <summary>Earlier exact-head qualification and integration dispositions</summary> **Current public-header maintenance qualification, 2026-11-17:** exact head `1858e6e8b1aab4e51a65cd4f3cc5a0b486239fd4`, integrating tested main `47e2f3bca828b2a6ccbb3adf0bff33d559bfdd09`. The only manual conflict resolution keeps main's umbrella header intact and inserts each existing feature-only include once before ConverterHelpers; main's new UtfConversions declarations remain reachable. Refreshed date/numbering prerequisite history is retained downstream. No outside feature branch was imported. - Linux: **81/81 selected CTests pass**. MinGW/private Wine: **80/80 pass**. Zero selected failures or skips. Fresh main baseline is66/66 on each platform. The full registered ICU family, parser callers and native public-header audit ran at these exact commits; ICU headers also compiled independently with native GCC and MinGW. - All35 scoped source checks pass across the seven refreshes. Independent header/merge review found no introduced Critical/Important/Minor finding and verified unique include unions, main/feature header blobs, dependency ancestry and only-header manual edits. - Actual data archive still has exactly one strong full-data provider, retains nfkc.nrm,nfkc_cf.nrm,uemoji.icu,ulayout.icu, and introduces no native ICU export/import leak relative to baseline. The tested full-data provider selection itself was not manually changed. - [Complete fresh qualification metadata and selected logs](https://gist.github.com/IvanFogel/8dac787f54c695ecfd44a94dd986b44b). These results supersede the older exact-head counts folded below. Native Windows/macOS, real titles and joint outside-peer execution were not run; Wine is not native Windows qualification. Draft and existing dependency/human-review gates remain. The latest scoped peer audit pins #22237 at `489c8fde3d860b4e837ee3b57638960518991c20`. Its calendar change corrects a placeholder parameter type rather than implementing our real getter. Future composition must preserve real feature bodies, its recovered-type/header/callback/status changes, the full ICU backend source union and exactly one full-data provider. This peer composition and landing order are unqualified; no new formal prerequisite or outside-author agreement is asserted. Existing #18208/#19435 data/source/filter and recorded peer gates remain. <details> <summary>Earlier pinned qualification and review dispositions (historical evidence)</summary> **2026-11-17 exact-head qualification:** `0cb65598cf64eb87b7983e37c4c27a6ad73278de`, based on tested main `050cdf95addcb05b1c663587ab921216707623fe`. - Linux: **79/79** selected CTests pass. MinGW/private Wine: **78/78** pass. No selected skips or failures. Selection includes every registered ICU case, focused math/wide-string/Dinkumware/multibyte callers, and applicable public-header/platform controls. - Archive inspection finds exactly one full-data provider. Built package entries retain `nfkc.nrm`, `nfkc_cf.nrm`, `uemoji.icu` and `ulayout.icu`; normalization/property/null-locale/UTC-time regressions pass. - Affected public headers compile independently. ELF/PE native-ICU symbol exposure matches the tested main baseline; no host ICU DLL dependency was introduced. - Conventions, committed whitespace and scoped/global debt checks pass. Independent integration review found no required source changes. - The previous Windows `guest_multibyte_locale` failure came from a change already reverted on main; this merged candidate passes that regression locally on Linux and Wine. Native Windows/macOS full CI and console execution were not run here. [Exact pins, platform results and complete Linux/Wine CTest logs](https://gist.github.com/IvanFogel/8413d9285a9334367b5cc4b2154761b2). The input-allocation regression is registered only on Linux; it is not a Wine or native Windows result. Keep Draft for #16971 and the recorded ICU peer/data/platform composition gates; #20395 has merged. Textual mergeability does not establish joint qualification with every current peer; previous external/composition receipts below keep their original pins. <details> <summary>Historical exact-head qualification</summary> **2026-11-16 maintenance — exact submitted/tested head `a1f3307cf6573dca36562339f685937b58d470c8`, main `e236a801f88183df3d215af0d450fb20baf9edc3`.** Merge main while preserving the original feature and prerequisite histories. Resolve the build-documentation conflict by retaining the two real ICU host-compiler options without reviving the removed FFmpeg prebuilt option. Consolidate the overlapping callable-inventory debt operations, retaining current main's complete locale/property exclusions plus the data/topic exclusions. Linux x86-64 / GCC 16.2.1 Release full runtime: **73/73 CTests pass**. MinGW 16 / private headless Wine 11.21: **72/72 pass**. No selected skips; every test finishes below 30 s. All registered ICU cases, patched-NID fixtures and relevant math/wide-string/Dinkumware parser callers run; Linux runs the public-header audit, Wine runs the FreeBSD clock control. **47 ICU header units compile independently on each toolchain**. ELF/PE inspection confirms no new native ICU backend exports or system-ICU imports. Fresh main control: Linux 58/58 pass; Wine 56/58 pass with the two reproduced parser failures. Independent integration review found no material source defect. Draft and existing peer/prerequisite integration gates remain; original dependency implementations and maintenance merge histories are retained, without claiming ancestry of the final parent debt-only tail tips. Native Windows, macOS, console/title and performance were not measured. Current conventions and committed whitespace checks pass. The scoped ICU debt fold passes. The global fold repeats main's unrelated stale NKWebKit fragment error (`5933 of the 8703`); that inherited failure was not changed or reported as green. A later mechanical merge check against main `4c976e99394db1546555ca53fd575912d4b819a8` is clean. Those later changes were not rerun as a combined runtime build. [Full exact-head results, matched baseline failures, validation logs, public-header/symbol audits and integration review](https://gist.github.com/IvanFogel/b5fc0ae08605542a9da101f7cd50fdcc). Historical results below retain their own pins and were not rerun as native-platform reports. <details> <summary>Historical qualification at its original exact commits</summary> **2026-11-15 refresh — exact submitted commit `e3e9ee86a0738e4dafd479533f97e1a357f90507`.** Linux GCC 16.2.1, Release/full source-built dependencies: **65/65 CTests pass, no skips**. MinGW GCC 16/private headless Wine 11.21 Staging: **64/64 CTests pass, no skips**, on the same standalone branch commit, including its declared prerequisites. All registered ICU cases and the expanded math/wide-string/Dinkumware parser callers run; Linux also runs the full public-header audit and Wine runs the FreeBSD clock regression. 45 ICU header units compile independently on each toolchain. The Linux-only IDNA allocation-stress case is not registered on Windows; it was not skipped by Wine. Native Windows was not run. The matching main control at `4da77d3353c9c9f59f15436af86f44e4bb3ee074` passes 47/47 Linux cases; Wine passes 46/47 with the reproduced `guest_icu_cstring` negative-overflow failure. The failing baseline is preserved. #20395 corrects that behavior, and the candidate passes all four affected public caller suites. ELF audits show no native ICU78 backend exports; PE retains the eight preexisting RTTI/name exports from main and imports no system ICU DLL. The ICU implementation, tests, data filters and build inputs are byte-identical to the reviewed pre-donor candidates. The updated prerequisite is composed without duplicate common test registrations; debt fragments preserve main's consolidated files, exact throwing inventories and each topic's original data scope. Current conventions, whitespace and debt-fold checks pass. Independent whole-change and integration-tail reviews found no required source changes. A later mechanical merge check against main `f61793afa6d22732addd93e3b27553fc5deeab2f` is clean. That main adds independent CodePointTrie source/test/umbrella registrations; those later-main additions were not rerun as a combined runtime build here. They are separate from the exact tested commits above. Existing Draft integration gates remain. [Full verbose logs, exact commits, header/symbol audits, source/debt checks and independent reviews](https://gist.github.com/IvanFogel/d0abeae6a91cae93de02ea939b4959a5). Across all six refreshed branches: 436 Linux and 435 MinGW/Wine passing CTests. No console, macOS, title-unblock or performance claim. Historical hosted Windows/AMD reports and composed runs below retain their old commit pins and were not rerun on this commit. <details> <summary>Historical qualification and reports (original exact commits)</summary> Latest local qualification (2026-11-13): submitted head `22025ce53e1cdbff535ca7f8a0c27aec96886b5f` contains main snapshot `496d57b47a9b2771146d2882c48d599aca8ce883`, including upstream CES revert `bbc937d05536ad0dce4e7a91b90e0d20cbd21360`. Feature implementation/tests and all existing non-merge commits are unchanged; conventions and whitespace checks pass. Linux: all18 ICU tests plus the actual public_headers audit and four CES regressions pass (23 total), including bounded input-allocation, native/conformance, full-data/break and functional patched-NID coverage. Source-built package contains uts46.nrm; ELF exports contain no native ICU78 names. MinGW16.2.0-2.1/private headless Wine11.21 passes17 ICU plus four CES tests (21 total) on evidence composition7299a75a914256394279872632a76f936f4917ee, which adds separate #19519/d43d250189579f1c475481416841cdbe099cf099 and #19625/4f4fa0b13e629d1de1dc3de5f8c5801e154e9b40. ICU source/test/header/data paths are byte-identical to this submitted head. Eight inherited PE normalizer RTTI/name exports match the recorded main667dbde5131d30a7db7a22bf1147889cc1ee4ec7 metadata baseline exactly; no new native ICU function exports. This is composed Wine evidence, not native Windows or standalone full-Windows qualification. Keep Draft with #16971 and the previously documented peer-data composition gates. [Exact pins and full qualification logs](https://gist.github.com/IvanFogel/e3096e7ad75390006640ba809885967d). Prior external Windows/macOS reports below remain historical; this update does not claim hosted full CI on the new head, author agreement, a commercial-title unblock or FPS improvement. CachyOS/Arch Linux x86-64, kernel 7.3.3-1-cachyos, GCC 16.2.1 Release. Tested exact head `65a90410b8a01aaecb652753ec8f21e8041c6594`, retaining refreshed #16971 head `657f3899c37455b41d553ae7ef59e48b23459cba` and its main base `423f20f613e562303f8c80192a48b78e7f0647d4`. Both original and reissued eight-commit prerequisite histories retain Alex Whitehouse's authorship. - All 18 selected ICU CTests pass, without skips: IDNA, recovered signatures, break iteration/Unicode fixtures, allocator/data registration, normalization and sets. Built the six affected runtime/test targets using the official ICU 78.1 source backend. - Source-built host tools generate the embedded package; its manifest contains `uts46.nrm`. The actual patched-library NID conversion succeeds. Dynamic symbol inspection finds no exported ICU `_78`/`icudt78` backend symbols. - Three Unicode 17 conformance modes each cover 6,391 source rows. All rows are compared against the native backend; error-free rows also check the Unicode expected result. This does not independently establish exact console-version error flags or ICU68/Unicode13 parity. - The new bounded allocation regression failed on both wrappers before the fix: each child returned allocation-error status 7 instead of refusing unreadable input. Each child's address-space headroom is capped at 8 MiB; no gigabyte allocation experiment was performed. After the fix both conversions refuse before growing the declared input. A separate portable 1,025-unit native differential case preserves an embedded NUL and suffix, exact-capacity behavior, termination and surrounding guards. - Updating to the prerequisite's refreshed history exposed duplicate CMake test registrations. Configure reproduced the duplicate-target/test errors; removing only the duplicate footer preserves the original declarations. The exact resulting combination passes the full 18-case selection. - Conventions against `origin/main` and whitespace checks pass. Windows, macOS, sanitizers and physical-console parity were not run. [Exact-commit full CTest logs, bounded RED/GREEN, source-data manifest and symbol evidence](https://gist.github.com/IvanFogel/66bd1758f9aa19acd831265c01a61f04). Final canonical overlap scan on this head inspected 1,513 open PRs and reported 19 peers; 17 conflict with the base and remain automatically uncompared. All 19 full peer heads and shared-path sets match the existing frozen manual review; no new or changed peer delta remains. The imported current #16971 head is now an ancestor and no longer a competing overlap. This is manual duplicate-scope clearance, not an automatic clean scan or joint runtime qualification of those branches. #19413 remains a concrete unresolved composition: its private NFKC CommonData entrypoint conflicts with this full generated ICU data package. A future composition must retain its APIs/tests while using one full package entrypoint. Shared data/CMake integrations with sibling feature stacks remain unqualified. No agreement or landing order with other authors is claimed; keep Draft and Depends on #16971. <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> </details> </details> </details> </details> </details> ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) and the licence notice of code adapted from upstream (see AGENTS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: <!-- #PR, or none --> #16971 - [x] Fixes: none <!-- issue it closes as Fixes #N, or none --> - [x] Unblocks: none <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> - [x] GPUs tested: n/a <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> - [x] AI-assisted: yes <!-- yes / no -->
MarcZX10 commented 2026-11-17 11:47:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-17T11:47:57Z.

Review: COMMENTED


Reviewed UTS46 IDNA and ICU data change — no blocking findings

Nothing blocks this; the points below are optional.

What I ran

  • Head 1858e6e8b1aab4e51a65cd4f3cc5a0b486239fd4 (PR #19562, Draft, base main). Read from the console run folder. No fresh GitHub refresh and no merged-preview check in this run.
  • No build, no compile, no CTest. Reading only.
  • Reader lookups:
python3 repo_read.py search Configuration.cpp core/libs/prx/libSceIcu/CMakeLists.txt
python3 repo_read.py search GuestCopyOut_nid_no_patch core/libs/prx/libc
python3 repo_read.py cat core/libs/prx/libc/src/General.cpp 872 884

Results

Check Result Note
Diff read, all hunks passed 31 of 31 reviewed files
Full text of changed files not run only diff hunks read
Build and CTest not run author-reported only
Whitespace and patch checks not run no git tooling in this run
Callers and helpers (reader) passed two lookups, not exhaustive

Findings

Blocking

None.

Non-blocking

  1. core/libs/prx/libSceIcu/CMakeLists.txt:625: the new target_sources(libSceIcu PRIVATE BreakIterator.cpp Data.cpp Configuration.cpp) repeats Configuration.cpp, which is already in the add_library list on line 1 of that file. I did not build, so I cannot say how CMake treats the duplicate; it looks harmless but redundant. Smallest fix: drop Configuration.cpp from the new line.
  2. core/libs/prx/libSceIcu/BreakIterator.cpp:27, core/libs/prx/libSceIcu/BreakIterator.cpp:54 and core/libs/prx/libSceIcu/Data.cpp:14: these exports read the guest error pointer directly, and the iterator functions pass the guest handle straight to native ICU with no registry check. If a guest passes an unmapped error pointer to ubrk_open, or a freed or forged iterator to ubrk_next, the host faults instead of refusing. Idna.cpp in the same PR uses a handle registry and checked copies, and the PR body says it keeps checked guest status. Configuration.cpp already writes *status directly, so this follows an older pattern in the module, and the debt note covers only null handles. Smallest fix: route error through the checked copy helpers as Idna.cpp does, or extend the debt entry to name the unmapped and forged cases.

Sources

Not verified

  • Build, CTest, MinGW and Wine counts in the PR body (81/81, 80/80 and the rest): author-reported, not run here.
  • Hosted CI for this head: not checked in this run.
  • Draft status and the dependencies on #16971 and #20395: taken from the PR body, not confirmed on GitHub.
  • GuestArena and GuestCopyIn behaviour on Windows: not read.
  • Host-tool ExternalProject and the cross-build path in cmake/IcuData.cmake: not executed.
  • ICU 78.1 behaviour against console ICU 68 and Unicode 13: out of scope; the debt notes already mark it unverified.
  • IdnaInputAllocation is registered on Linux only, as the PR states; not checked on Windows.
  • Files read: all 31 reviewed files, through their diff hunks. Full text in files/ was not opened. Excluded by rule: none (files.json lists no exclusions).

To get this to a good state

Nothing is required. The non-blocking items above are optional.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5937837974 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19562#pullrequestreview-5937837974). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-17T11:47:57Z. **Review:** COMMENTED --- # Reviewed UTS46 IDNA and ICU data change — no blocking findings Nothing blocks this; the points below are optional. ## What I ran - Head `1858e6e8b1aab4e51a65cd4f3cc5a0b486239fd4` (PR #19562, Draft, base `main`). Read from the console run folder. No fresh GitHub refresh and no merged-preview check in this run. - No build, no compile, no CTest. Reading only. - Reader lookups: ```sh python3 repo_read.py search Configuration.cpp core/libs/prx/libSceIcu/CMakeLists.txt python3 repo_read.py search GuestCopyOut_nid_no_patch core/libs/prx/libc python3 repo_read.py cat core/libs/prx/libc/src/General.cpp 872 884 ``` ## Results | Check | Result | Note | |---|---|---| | Diff read, all hunks | passed | 31 of 31 reviewed files | | Full text of changed files | not run | only diff hunks read | | Build and CTest | not run | author-reported only | | Whitespace and patch checks | not run | no git tooling in this run | | Callers and helpers (reader) | passed | two lookups, not exhaustive | ## Findings ### Blocking None. ### Non-blocking 1. `core/libs/prx/libSceIcu/CMakeLists.txt:625`: the new `target_sources(libSceIcu PRIVATE BreakIterator.cpp Data.cpp Configuration.cpp)` repeats `Configuration.cpp`, which is already in the `add_library` list on line 1 of that file. I did not build, so I cannot say how CMake treats the duplicate; it looks harmless but redundant. Smallest fix: drop `Configuration.cpp` from the new line. 2. `core/libs/prx/libSceIcu/BreakIterator.cpp:27`, `core/libs/prx/libSceIcu/BreakIterator.cpp:54` and `core/libs/prx/libSceIcu/Data.cpp:14`: these exports read the guest `error` pointer directly, and the iterator functions pass the guest handle straight to native ICU with no registry check. If a guest passes an unmapped `error` pointer to `ubrk_open`, or a freed or forged iterator to `ubrk_next`, the host faults instead of refusing. `Idna.cpp` in the same PR uses a handle registry and checked copies, and the PR body says it keeps checked guest status. `Configuration.cpp` already writes `*status` directly, so this follows an older pattern in the module, and the debt note covers only null handles. Smallest fix: route `error` through the checked copy helpers as `Idna.cpp` does, or extend the debt entry to name the unmapped and forged cases. ## Sources - Zero-length guest copies return true before touching the address, so the null-output preflight path is not a defect: https://github.com/boykopovar/AnyPS5/blob/1858e6e8b1aab4e51a65cd4f3cc5a0b486239fd4/core/libs/prx/libc/src/General.cpp#L872-L873 - Existing `Configuration.cpp` in the CMake source list: https://github.com/boykopovar/AnyPS5/blob/1858e6e8b1aab4e51a65cd4f3cc5a0b486239fd4/core/libs/prx/libSceIcu/CMakeLists.txt#L1 ## Not verified - Build, CTest, MinGW and Wine counts in the PR body (81/81, 80/80 and the rest): author-reported, not run here. - Hosted CI for this head: not checked in this run. - Draft status and the dependencies on #16971 and #20395: taken from the PR body, not confirmed on GitHub. - `GuestArena` and `GuestCopyIn` behaviour on Windows: not read. - Host-tool `ExternalProject` and the cross-build path in `cmake/IcuData.cmake`: not executed. - ICU 78.1 behaviour against console ICU 68 and Unicode 13: out of scope; the debt notes already mark it unverified. - `IdnaInputAllocation` is registered on Linux only, as the PR states; not checked on Windows. - Files read: all 31 reviewed files, through their diff hunks. Full text in `files/` was not opened. Excluded by rule: none (`files.json` lists no exclusions). ## To get this to a good state Nothing is required. The non-blocking items above are optional.
MarcZX10 commented 2026-11-20 07:18:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T07:18:12Z.

Review: COMMENTED


Reviewed — comments

The prepared bundle describes the UTS46 IDNA integration; I inspected selected implementation and build hunks, but did not complete the full source review or run checks, so a formal merge decision is not justified.

What I ran

  • Read the prepared description, commit list, manifest, and the first 850 lines of the diff for head 7be3af0ba17781967fcc88ea9480c16e7bc527cb.
  • Read selected source ranges in Idna.cpp, Configuration.cpp, Data.cpp, and CMakeLists.txt through repo_read.py.
  • No build or tests were run.

Results

Check Result Note
Prepared change review not run Only selected hunks inspected
Build and tests not run No commands executed

Findings

Blocking

None identified in the inspected ranges.

Non-blocking

  • The review is incomplete: several changed implementation, test, build, and debt files were not read. A full review is needed before approval.

Not verified

The complete diff and source were not reviewed. In particular, I did not inspect the full IDNA and break-iterator tests, all changed ICU/build files, or any files excluded from the prepared bundle. No claims are made about their correctness or test status. The files identified as changed in the manifest were not all read.

To get this to a good state

Nothing is required. Optional: complete the source review and run the relevant checks before making a formal decision.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5988894074 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19562#pullrequestreview-5988894074). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T07:18:12Z. **Review:** COMMENTED --- # Reviewed — comments The prepared bundle describes the UTS46 IDNA integration; I inspected selected implementation and build hunks, but did not complete the full source review or run checks, so a formal merge decision is not justified. ## What I ran - Read the prepared description, commit list, manifest, and the first 850 lines of the diff for head `7be3af0ba17781967fcc88ea9480c16e7bc527cb`. - Read selected source ranges in `Idna.cpp`, `Configuration.cpp`, `Data.cpp`, and `CMakeLists.txt` through `repo_read.py`. - No build or tests were run. ## Results | Check | Result | Note | |---|---|---| | Prepared change review | not run | Only selected hunks inspected | | Build and tests | not run | No commands executed | ## Findings ### Blocking None identified in the inspected ranges. ### Non-blocking - The review is incomplete: several changed implementation, test, build, and debt files were not read. A full review is needed before approval. ## Not verified The complete diff and source were not reviewed. In particular, I did not inspect the full IDNA and break-iterator tests, all changed ICU/build files, or any files excluded from the prepared bundle. No claims are made about their correctness or test status. The files identified as changed in the manifest were not all read. ## To get this to a good state Nothing is required. Optional: complete the source review and run the relevant checks before making a formal decision.
MarcZX10 commented 2026-11-20 08:04:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T08:04:38Z.

Review: COMMENTED


Reviewed — no blocking findings

Nothing blocks this change; the inspected implementation and tests support merging.

What I ran

Reviewed head 02952742f66f388106eb9eb036f9b7177108c7bf using the prepared review bundle and repository reader. No build or tests were run in this review.

Results

Check Result Note
Source review passed IDNA handle identity and conversion paths inspected
Build and tests not run Relied on author-reported results

Findings

Blocking

None.

Non-blocking

None.

Sources

The diff, description, and commit list were read. Changed source read: Idna.cpp, Configuration.cpp, Data.cpp, and tests/IdnaIdentity.cpp. Relevant changed lines from the diff were inspected for BreakIterator.cpp, CMakeLists.txt, and the ICU data build setup.

Not verified

The rest of the changed lines were not read, including the remaining tests, documentation, and debt records. Build and test results in the description are author-reported and were not independently run. Native Windows, macOS, console, and title behavior remain unverified here.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5989358690 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19562#pullrequestreview-5989358690). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T08:04:38Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing blocks this change; the inspected implementation and tests support merging. ## What I ran Reviewed head `02952742f66f388106eb9eb036f9b7177108c7bf` using the prepared review bundle and repository reader. No build or tests were run in this review. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | IDNA handle identity and conversion paths inspected | | Build and tests | not run | Relied on author-reported results | ## Findings ### Blocking None. ### Non-blocking None. ## Sources The diff, description, and commit list were read. Changed source read: `Idna.cpp`, `Configuration.cpp`, `Data.cpp`, and `tests/IdnaIdentity.cpp`. Relevant changed lines from the diff were inspected for `BreakIterator.cpp`, `CMakeLists.txt`, and the ICU data build setup. ## Not verified The rest of the changed lines were not read, including the remaining tests, documentation, and debt records. Build and test results in the description are author-reported and were not independently run. Native Windows, macOS, console, and title behavior remain unverified here. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-21 09:05:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T09:05:07Z.

Review: COMMENTED


Reviewed — comments

The reviewed source ranges show no verified blocking defect, but this review did not run the build or tests and does not justify approval.

What I ran

Reviewed head f5ade9d64673180d5bdc99f4d1a10462128b0a76. I read the prepared description, commit list, diff, manifest, and selected current source files through repo_read.py; I ran no commands, builds, or tests. The reported Linux and MinGW/Wine results are author-reported. No merged-preview check was run.

Results

Check Result Note
Source review passed Reviewed IDNA, break iterator, allocator, data-generation paths
Build and tests not run Reported results were not reproduced
Changed-file coverage not run Not every changed file was read

Findings

Blocking

None verified in the source ranges read.

Non-blocking

None.

Not verified

No changed file was excluded by the manifest, but this review read only selected ranges from Idna.cpp, BreakIterator.cpp, Configuration.cpp, CMakeLists.txt, Icu.cmake, IcuData.cmake, and IdnaIdentity.cpp; it also read the diff and manifest. Other changed files and unchanged callers were not read. No build, test, native Windows, console, or title behavior was verified. The claimed Linux and MinGW/Wine test results were not run by this reviewer.

To get this to a good state

Nothing is required. Optional: reproduce the reported build and test checks on this exact head, and complete review of the remaining changed files before seeking formal approval.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6004299573 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19562#pullrequestreview-6004299573). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T09:05:07Z. **Review:** COMMENTED --- # Reviewed — comments The reviewed source ranges show no verified blocking defect, but this review did not run the build or tests and does not justify approval. ## What I ran Reviewed head `f5ade9d64673180d5bdc99f4d1a10462128b0a76`. I read the prepared description, commit list, diff, manifest, and selected current source files through `repo_read.py`; I ran no commands, builds, or tests. The reported Linux and MinGW/Wine results are author-reported. No merged-preview check was run. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | Reviewed IDNA, break iterator, allocator, data-generation paths | | Build and tests | not run | Reported results were not reproduced | | Changed-file coverage | not run | Not every changed file was read | ## Findings ### Blocking None verified in the source ranges read. ### Non-blocking None. ## Not verified No changed file was excluded by the manifest, but this review read only selected ranges from `Idna.cpp`, `BreakIterator.cpp`, `Configuration.cpp`, `CMakeLists.txt`, `Icu.cmake`, `IcuData.cmake`, and `IdnaIdentity.cpp`; it also read the diff and manifest. Other changed files and unchanged callers were not read. No build, test, native Windows, console, or title behavior was verified. The claimed Linux and MinGW/Wine test results were not run by this reviewer. ## To get this to a good state Nothing is required. Optional: reproduce the reported build and test checks on this exact head, and complete review of the remaining changed files before seeking formal approval.
MarcZX10 commented 2026-11-21 09:16:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T09:16:08Z.

Review: COMMENTED


Reviewed — no blocking findings

Nothing blocks this review; the points below are optional.

What I ran

Reviewed head 61771e8e28afe2a21755a0b941fbf403317a667c. No build or tests were run in this read-only review session. I read the review description, commits, manifest and diff, plus the listed source and test ranges noted below.

Results

Check Result Note
Source review passed Inspected the IDNA and break iterator implementations and selected tests.
Build and tests not run Author-reported results were not rerun.

Findings

Blocking

None.

Non-blocking

  • The description records that native Windows, console and title behavior remain unverified. Keep those integration limits visible when assessing readiness; the reported Wine results do not establish native Windows behavior.

Not verified

I read the changed lines in Idna.cpp, BreakIterator.cpp, Configuration.cpp, the relevant Idna.cpp test ranges, and IdnaNid.cpp. I also read review/description.md, review/commits.md, review/manifest.json, review/README.md, and the diff through line 900 and its final lines. I did not read every changed line listed in the manifest, including most test files, build integration, data configuration and debt documentation; those areas are not fully verified. No checks were run. Native Windows, macOS, console and title behavior were not verified in this review.

To get this to a good state

Nothing is required. The optional integration qualification limits are noted above.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6004338697 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19562#pullrequestreview-6004338697). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T09:16:08Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing blocks this review; the points below are optional. ## What I ran Reviewed head `61771e8e28afe2a21755a0b941fbf403317a667c`. No build or tests were run in this read-only review session. I read the review description, commits, manifest and diff, plus the listed source and test ranges noted below. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | Inspected the IDNA and break iterator implementations and selected tests. | | Build and tests | not run | Author-reported results were not rerun. | ## Findings ### Blocking None. ### Non-blocking - The description records that native Windows, console and title behavior remain unverified. Keep those integration limits visible when assessing readiness; the reported Wine results do not establish native Windows behavior. ## Not verified I read the changed lines in `Idna.cpp`, `BreakIterator.cpp`, `Configuration.cpp`, the relevant `Idna.cpp` test ranges, and `IdnaNid.cpp`. I also read `review/description.md`, `review/commits.md`, `review/manifest.json`, `review/README.md`, and the diff through line 900 and its final lines. I did not read every changed line listed in the manifest, including most test files, build integration, data configuration and debt documentation; those areas are not fully verified. No checks were run. Native Windows, macOS, console and title behavior were not verified in this review. ## To get this to a good state Nothing is required. The optional integration qualification limits are noted above.
MarcZX10 commented 2026-11-22 09:30:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T09:30:14Z.

Review: COMMENTED


Reviewed — comments

The inspected code shows no verified blocking defect, but this review is incomplete and does not justify a formal decision.

What I ran

Read the prepared review description, commit list, manifest, README, and selected diff sections using the pinned reader at head e45ab8a308bb5e50af0d91c5b8f774096545c463. No build or tests were run.

Results

Check Result Note
Source inspection not run Partial review only
Build and tests not run No execution environment available

Negative control

Not run; no tests were executed.

Findings

Blocking

None verified in the inspected code.

Non-blocking

None.

Sources

Inspected Idna.cpp, Configuration.cpp, Data.cpp, Data.hpp, BreakIterator.cpp, and selected IDNA and file-access tests at the pinned head.

Not verified

The review did not cover every changed line or file. Read: prepared review documents and selected sections of diff.patch; Idna.cpp, Configuration.cpp, Data.cpp, Data.hpp, BreakIterator.cpp, FileAccess.cpp, IdnaIdentity.cpp, IdnaInputAllocation.cpp, and portions of Idna.cpp tests. Not read in full: other changed files, including build configuration, remaining tests, headers, and debt documentation. No code was executed; author-reported results in the description were not independently verified.

To get this to a good state

Nothing is required. Optional: complete the remaining changed-file review and run the relevant checks before making a formal approval decision.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6011502497 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19562#pullrequestreview-6011502497). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-22T09:30:14Z. **Review:** COMMENTED --- # Reviewed — comments The inspected code shows no verified blocking defect, but this review is incomplete and does not justify a formal decision. ## What I ran Read the prepared review description, commit list, manifest, README, and selected diff sections using the pinned reader at head `e45ab8a308bb5e50af0d91c5b8f774096545c463`. No build or tests were run. ## Results | Check | Result | Note | |---|---|---| | Source inspection | not run | Partial review only | | Build and tests | not run | No execution environment available | ## Negative control Not run; no tests were executed. ## Findings ### Blocking None verified in the inspected code. ### Non-blocking None. ## Sources Inspected `Idna.cpp`, `Configuration.cpp`, `Data.cpp`, `Data.hpp`, `BreakIterator.cpp`, and selected IDNA and file-access tests at the pinned head. ## Not verified The review did not cover every changed line or file. Read: prepared review documents and selected sections of `diff.patch`; `Idna.cpp`, `Configuration.cpp`, `Data.cpp`, `Data.hpp`, `BreakIterator.cpp`, `FileAccess.cpp`, `IdnaIdentity.cpp`, `IdnaInputAllocation.cpp`, and portions of `Idna.cpp` tests. Not read in full: other changed files, including build configuration, remaining tests, headers, and debt documentation. No code was executed; author-reported results in the description were not independently verified. ## To get this to a good state Nothing is required. Optional: complete the remaining changed-file review and run the relevant checks before making a formal approval decision.
MarcZX10 commented 2026-11-25 11:59:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T11:59:55Z.

Review: COMMENTED


Reviewed — no blocking findings

The inspected source does not establish a blocking defect; I did not run checks or complete the review of every changed file, so approval is not justified.

What I ran

Read the prepared diff and targeted source at head cda1f7890c6949a29168d5718c43fb840804d61c. No commands or tests were run.

Results

Check Result Note
Targeted source review passed No blocking defect found in inspected source.
Tests and build not run Results in the PR description are author-reported.

Findings

Blocking

None identified in the inspected source.

Non-blocking

None.

Not verified

I read review/description.md, review/commits.md, review/manifest.json, review/diff.patch, and the changed source files core/libs/prx/libSceIcu/Idna.cpp, core/libs/prx/libSceIcu/BreakIterator.cpp, core/libs/prx/libSceIcu/Configuration.cpp, core/libs/prx/libSceIcu/CMakeLists.txt, and cmake/IcuData.cmake. The manifest lists 40 changed files, all marked included; I did not read the other changed files. No checks were run, and native Windows, console, and title behavior were not verified. The reported Linux and MinGW/Wine test results were not independently confirmed.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6057202151 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19562#pullrequestreview-6057202151). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-25T11:59:55Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The inspected source does not establish a blocking defect; I did not run checks or complete the review of every changed file, so approval is not justified. ## What I ran Read the prepared diff and targeted source at head `cda1f7890c6949a29168d5718c43fb840804d61c`. No commands or tests were run. ## Results | Check | Result | Note | |---|---|---| | Targeted source review | passed | No blocking defect found in inspected source. | | Tests and build | not run | Results in the PR description are author-reported. | ## Findings ### Blocking None identified in the inspected source. ### Non-blocking None. ## Not verified I read `review/description.md`, `review/commits.md`, `review/manifest.json`, `review/diff.patch`, and the changed source files `core/libs/prx/libSceIcu/Idna.cpp`, `core/libs/prx/libSceIcu/BreakIterator.cpp`, `core/libs/prx/libSceIcu/Configuration.cpp`, `core/libs/prx/libSceIcu/CMakeLists.txt`, and `cmake/IcuData.cmake`. The manifest lists 40 changed files, all marked included; I did not read the other changed files. No checks were run, and native Windows, console, and title behavior were not verified. The reported Linux and MinGW/Wine test results were not independently confirmed. ## To get this to a good state Nothing is required.
ligmaSec commented 2026-12-03 19:46:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T19:46:51Z.

Review: COMMENTED


uidna_close_nid_postfix calls Handles.erase while it holds HandlesMutex, so the native uidna_close runs under that mutex. The configured ICU allocator dispatches its release callback to guest code. If that callback uses another UIDNA handle, it takes the same mutex and the thread waits on itself. Please move the native owner out of the map and destroy it after releasing the registry lock. Convert also holds the registry lock across native calls that can allocate. A strong owner copied under the lock would keep a conversion alive while letting native ICU run without the registry locked.

Source review at cda1f7890c. Trial integration onto 484e8e6b77 conflicts in RightToLeft.cpp.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6177241220 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19562#pullrequestreview-6177241220). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T19:46:51Z. **Review:** COMMENTED --- `uidna_close_nid_postfix` calls `Handles.erase` while it holds `HandlesMutex`, so the native `uidna_close` runs under that mutex. The configured ICU allocator dispatches its release callback to guest code. If that callback uses another UIDNA handle, it takes the same mutex and the thread waits on itself. Please move the native owner out of the map and destroy it after releasing the registry lock. `Convert` also holds the registry lock across native calls that can allocate. A strong owner copied under the lock would keep a conversion alive while letting native ICU run without the registry locked. Source review at `cda1f7890c`. Trial integration onto `484e8e6b77` conflicts in `RightToLeft.cpp`. AI-assisted: yes.
MarcZX10 commented 2026-12-04 09:46:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-04T09:46:36Z.

Review: COMMENTED


Reviewed — no blocking findings

The inspected implementation and build changes show no verified blocking defect, but the full changed-file set was not reviewed, so a formal approval is not justified.

What I ran

Reviewed head ce6c41fa36b40e1394c7e3349839df313d6dc53b from the prepared diff and file snapshots. I did not run tests, builds, or other checks.

Commands used:

pwd
ls -la
sed -n ...
cat manifest.json
rg '^diff --git|^@@' diff.patch
find files -type f

Results

Check Result Note
Prepared diff and metadata passed Read
Targeted source review passed No blocker verified
Tests and builds not run No execution
Full changed-file review not run 40 files listed; only a subset read

Findings

Blocking

None verified in the inspected files.

Non-blocking

None.

Not verified

The full review is incomplete. I read cmake/IcuData.cmake, cmake/icu-host/CMakeLists.txt, and selected portions of core/libs/prx/libSceIcu/Idna.cpp, Configuration.cpp, BreakIterator.cpp, Data.cpp, Availability.cpp, Export.cpp, and CMakeLists.txt. I also read description.md, commits.md, manifest.json, files.json, and diff.patch.

I did not read every changed file listed under reviewed in files.json; in particular, most changed tests, headers, documentation, and debt records were not inspected. Native Windows, console, and title behavior were not verified. Author-reported test results were not rerun.

To get this to a good state

Nothing is required. Optional: complete review of the remaining changed files and run relevant non-compiling checks before issuing a formal approval.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6186796674 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19562#pullrequestreview-6186796674). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-12-04T09:46:36Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The inspected implementation and build changes show no verified blocking defect, but the full changed-file set was not reviewed, so a formal approval is not justified. ## What I ran Reviewed head `ce6c41fa36b40e1394c7e3349839df313d6dc53b` from the prepared diff and file snapshots. I did not run tests, builds, or other checks. Commands used: ```text pwd ls -la sed -n ... cat manifest.json rg '^diff --git|^@@' diff.patch find files -type f ``` ## Results | Check | Result | Note | |---|---|---| | Prepared diff and metadata | passed | Read | | Targeted source review | passed | No blocker verified | | Tests and builds | not run | No execution | | Full changed-file review | not run | 40 files listed; only a subset read | ## Findings ### Blocking None verified in the inspected files. ### Non-blocking None. ## Not verified The full review is incomplete. I read `cmake/IcuData.cmake`, `cmake/icu-host/CMakeLists.txt`, and selected portions of `core/libs/prx/libSceIcu/Idna.cpp`, `Configuration.cpp`, `BreakIterator.cpp`, `Data.cpp`, `Availability.cpp`, `Export.cpp`, and `CMakeLists.txt`. I also read `description.md`, `commits.md`, `manifest.json`, `files.json`, and `diff.patch`. I did not read every changed file listed under `reviewed` in `files.json`; in particular, most changed tests, headers, documentation, and debt records were not inspected. Native Windows, console, and title behavior were not verified. Author-reported test results were not rerun. ## To get this to a good state Nothing is required. Optional: complete review of the remaining changed files and run relevant non-compiling checks before issuing a formal approval.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/19562:upstream-pr/19562'
git switch 'upstream-pr/19562'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/19562'
git switch 'upstream-pr/19562'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/19562'
git switch 'upstream-pr/19562'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/19562'
git switch 'main'
git merge --squash 'upstream-pr/19562'
git switch 'main'
git merge --ff-only 'upstream-pr/19562'
git switch 'main'
git merge 'upstream-pr/19562'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!19562
No description provided.