feat(libSceIcu): implement usearch_setText #27184
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/27184"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by Thimo188 on 2026-11-25T10:31:12Z.
What
Implement
usearch_setTextwith guest-safe UTF-16 copies and stable owned storage for every accepted text.Inherit #27182's correction:
USEARCH_ATTRIBUTE_VALUE_COUNTreportsU_ILLEGAL_ARGUMENT_ERROReven for a prefailed status, matching ICU 68.2 and 78.1; other prefailed calls skip handle access.Tested
Current integration validation: Ubuntu 24.04 x86_64 Docker, GCC 13.3, CMake 3.28.3, Ninja, Release, BUILD_TESTING=ON, at
cf6f47ed3febc7380d3df5bee63e23e5904f6da9with upstreammain5cf487d16805a9c90a41d153363adac12a1082efmerged. The focused PR CTests passed 3/3. Conventions, debt fragments, diff whitespace, public headers and test-registration audits passed. This update merges upstream main and current declared dependencies without changing the topic implementation. No title or PS5 run.Ubuntu 24.04 x86_64 Docker (
anyps5-dev:24.04), GCC 13.3, Ninja, Release,BUILD_TESTING=ON, after merging upstreammainfc294cbbb539and the refreshed declared dependency: built and ranguest_icu_recovered_signatures,guest_icu_display_keyword_value, andguest_icu_break_iterator; all 3/3 passed.python3 tools/check_conventions.py,python3 tools/debt_fold.py --check, andgit diff --checkpassed. Retested the inherited sentinel fix with native-oracle coverage for null, forged and live handles, errno, unchanged attributes and read-only status memory; all 3/3 tests passed. Source-only negative control on #27182 built with the corrected tests and failed at the expected sentinel-status assertion; restoring the fix passes. Public-header, script and configured test-registration audits passed. No title or console run.Revalidated on 2026-12-02 at
aeebd54897303a71a97fc57b305cfae830c2b359with upstreammainfc294cbbb539ca1a93570b6bc063fd8e9a5fd97bincluded.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T10:48:26Z.
Review: COMMENTED
Reviewed — no blocking findings
The
usearch_setTextwrapper copies accepted UTF-16 input into owned storage before updating ICU, and the inspected tests cover guest pointers and error statuses; the full change was not reviewed.What I ran
No commands or tests were run. I read the prepared diff and repository files through the pinned reader.
Results
Findings
Blocking
None in the code inspected.
Non-blocking
None.
Not verified
The full PR is not verified: the review folder lists 40 changed files, while I read added lines only in
StringSearch.cppand parts oftests/StringSearch.cpp, plus selected build, configuration, and break iterator context. I did not inspect all added lines in the remaining changed files or run tests. The author reports both Linux and Windows test runs indescription.md.To get this to a good state
Nothing is required.
Files read:
review/description.md,review/commits.md,review/manifest.json,review/diff.patch,review/README.md,core/libs/prx/libSceIcu/StringSearch.cpp,core/libs/prx/libSceIcu/tests/StringSearch.cpp,core/libs/prx/libSceIcu/CMakeLists.txt,cmake/IcuData.cmake,core/libs/prx/libSceIcu/Configuration.cpp, andcore/libs/prx/libSceIcu/BreakIterator.cpp. Excluded: added lines in other changed files and unread portions of the changed files listed above.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T15:20:07Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
Changes are required before merge: reject
textLength < -1inusearch_setText_nid_postfixand add a regression test for that input.What I ran
188b4f6eed77c8e0747a8ec61737ea37371f7998; base ismain. No build or tests were run.Results
Findings
Blocking
core/libs/prx/libSceIcu/StringSearch.cpp:228: the guard permits lengths less than-1, andCopyUnitstreats every negative length as NUL terminated. This means invalid values such as-2are accepted as-1; if the supplied text is not terminated, copying continues until a terminator or an unreadable page. RejecttextLength < -1before copying. Add ausearch_setTextregression test for-2andINT32_MIN(the current test expects both to be illegal, but does not verify the implementation’s result).Non-blocking
None.
Not verified
To get this to a good state
Reject lengths below
-1inusearch_setText_nid_postfix, add regression assertions for-2andINT32_MIN, then run the relevant string search test on the updated head.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T17:05:58Z.
Review: COMMENTED
Reviewed — comments
Changes are required before merge: address the status handling and empty-text edge cases in
usearch_setText.What I ran
Reviewed head
36c5810177f4028bb66a31fa14d813120290b883. No build or tests were run. Read the prepared description, commits, manifest and diff, plus the complete changedStringSearch.cppsource.Results
Findings
Blocking
None verified.
Non-blocking
usearch_setTextrejectstextLength == 0and any copied empty string asIllegalArgument(core/libs/prx/libSceIcu/StringSearch.cpp:228). Confirm this matches the guest ICU contract: a zero-length text can be a valid search text, and this wrapper also rejectstextLength == -1when the first UTF-16 unit is NUL. Add tests for these inputs and retain valid empty text if supported.usearch_setTextcallsCopyOutunconditionally (core/libs/prx/libSceIcu/StringSearch.cpp:228). Unlike the other setters, this overwrites an incoming positive failure status. Preserve the incoming status convention before writingIllegalArgument, and cover this case in tests.Not verified
Did not read every changed file or run tests/builds; approval criteria are therefore not met. Changed files read:
core/libs/prx/libSceIcu/StringSearch.cpp. Changed files not read: all other changed files listed in the manifest. Excluded files were not checked individually.To get this to a good state
Nothing is required for merge based on verified blocking findings. Optional: confirm empty-text behavior and preserve incoming failure status, with focused tests.
Imported from boykopovar/AnyPS5. Originally posted by Thimo188 on 2026-11-25T20:59:00Z.
Review: COMMENTED
I verified both points against the pinned ICU implementation and focused tests. ICU explicitly rejects textLength == 0. For textLength == -1 with an empty NUL-terminated string, usearch_setText resolves the length to zero and the downstream ucol_setText returns U_ILLEGAL_ARGUMENT_ERROR; a local regression experiment confirmed that result. The wrapper therefore already matches upstream by rejecting the empty replacement. Incoming positive failures are also preserved because Succeeded returns before argument validation, and FailingStatus already covers null/invalid setText arguments with every failing status. No code change is needed for these comments.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-27T08:28:37Z.
Review: COMMENTED
Actionable comments posted: 5
05fc98e4-4d54-4415-ac7a-a65c83744645Reviewing files that changed from the base of the PR and between
12b4fd5d6aandde59d289bf..gitignoreCONTRIBUTING.mdcmake/Icu.cmakecmake/IcuData.cmakecmake/IcuDataFilter.jsoncmake/icu-host/CMakeLists.txtcore/libs/prx/libSceIcu/Availability.cppcore/libs/prx/libSceIcu/BreakIterator.cppcore/libs/prx/libSceIcu/BreakIterator.hppcore/libs/prx/libSceIcu/CMakeLists.txtcore/libs/prx/libSceIcu/Collator.cppcore/libs/prx/libSceIcu/CollatorHost.cppcore/libs/prx/libSceIcu/CollatorHost.hppcore/libs/prx/libSceIcu/Configuration.cppcore/libs/prx/libSceIcu/Data.cppcore/libs/prx/libSceIcu/Data.hppcore/libs/prx/libSceIcu/Export.cppcore/libs/prx/libSceIcu/RecoveredInventory.cppcore/libs/prx/libSceIcu/RecoveredInventory.hppcore/libs/prx/libSceIcu/RecoveredSignatures.hppcore/libs/prx/libSceIcu/StringSearch.cppcore/libs/prx/libSceIcu/StringSearchHost.cppcore/libs/prx/libSceIcu/StringSearchHost.hppcore/libs/prx/libSceIcu/include/InventoryExports.hppcore/libs/prx/libSceIcu/libSceIcu.hppcore/libs/prx/libSceIcu/tests/BreakIterator.cppcore/libs/prx/libSceIcu/tests/Collator.cppcore/libs/prx/libSceIcu/tests/Data.cppcore/libs/prx/libSceIcu/tests/StringSearch.cppdocs/dev/BUILD.mddocs/dev/debt/changes/feat-icu-string-search-matched-length.mddocs/dev/debt/changes/feat-icu-string-search-open.mddocs/dev/debt/changes/feat-icu-string-search-reset.mddocs/dev/debt/changes/feat-icu-string-search-set-attribute.mddocs/dev/debt/changes/feat-icu-string-search-set-offset.mddocs/dev/debt/changes/feat-icu-string-search-set-pattern.mddocs/dev/debt/changes/feat-icu-string-search-set-text.mddocs/dev/debt/changes/feat-libsceicu-data-break-iterator.mddocs/dev/debt/changes/feat-libsceicu-data-collator.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T08:38:32Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
Changes are required before merge: make the search handle’s owned buffers consistent with the text and pattern accepted by ICU.
What I ran
Reviewed head
de59d289bf29d9f989ef4f5449bdd34055eb316fagainst the prepared diff. No commands or tests were run;repo_read.pywas used for targeted source reads. The PR description reports Linux and Windows test runs; these were not independently verified.Results
Findings
Blocking
core/libs/prx/libSceIcu/StringSearch.cpp:221andcore/libs/prx/libSceIcu/StringSearch.cpp:241: the wrapper swaps the replacement buffer intoSearchStateregardless of ICU’s outgoing status. Ifusearch_setPatternorusearch_setTextrejects a replacement (for example, because a negative-terminated input contains no terminator within the accepted range), ICU can retain its prior buffer while the state destroys it. Keep the old buffer on failure; only swap the replacement in after ICU reports success. This can leave ICU with a dangling pointer and cause invalid reads in subsequent search operations.Non-blocking
None.
Not verified
StringSearch.cpp, its tests,BreakIterator.cpp,Configuration.cpp,Availability.cpp, andIcuData.cmake. The review folder has noreview/files/files; the rest of the changed-file full texts were not read.files.jsonwas not available through the reader, so excluded-by-rule files were not verified.To get this to a good state
Retain each search state’s existing buffer when ICU returns an error from
SetPatternorSetText; rerun the focused ICU string search tests on the updated head.Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-27T09:42:37Z.
Review: COMMENTED
Actionable comments posted: 4
3deb6059-d974-4cde-9ee2-160923782707Reviewing files that changed from the base of the PR and between
de59d289bfandaa90a0e32a.cmake/IcuData.cmakecmake/IcuDataBuilder.pycore/libs/prx/libSceIcu/BreakIterator.cppcore/libs/prx/libSceIcu/BreakIterator.hppcore/libs/prx/libSceIcu/Collator.cppcore/libs/prx/libSceIcu/Configuration.cppcore/libs/prx/libSceIcu/StringSearch.cppcore/libs/prx/libSceIcu/StringSearchHost.hppcore/libs/prx/libSceIcu/tests/StringSearch.cppdocs/dev/debt/changes/feat-icu-string-search-open.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T10:08:10Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected code shows no verified blocking defect, but this review is incomplete because most changed files were not read.
What I ran
Reviewed head
aa90a0e32a9d23415bdb6f61d349456a2600d702using the prepared diff andrepo_read.py; no build or tests were run.Results
Findings
Blocking
None verified in the inspected code.
Non-blocking
None.
Sources
Not verified
Read the review description, commits, manifest, diff, and README. Read changed repository files:
cmake/Icu.cmake,cmake/IcuData.cmake,core/libs/prx/libSceIcu/Availability.cpp,BreakIterator.cpp,CMakeLists.txt(targeted ranges),Collator.cpp,Configuration.cpp,Data.cpp,Data.hpp,StringSearch.cpp,StringSearchHost.cpp,StringSearchHost.hpp,tests/Data.cpp, andtests/StringSearch.cpp. The bundle lists 40 changed files; most were not read, including the host build scripts, several tests, headers, and documentation. Build and test results in the description are author-reported, not independently confirmed. Console behavior was not verified.To get this to a good state
Nothing is required. Optional: complete review of the remaining changed files and run the reported Linux and Windows checks before making a formal merge decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T10:41:22Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the setText implementation copies guest UTF-16 into owned storage and keeps the previous text alive if ICU rejects an update.
What I ran
Reviewed head
0cf4fc040e9900603164b1556172174e98df2cf5; no commands or tests were run. Readdescription.md,commits.md,manifest.json,diff.patch,README.md, and the changed setText implementation, host adapter, and related tests. The prepared review folder contains 39 changed files, all marked included; I did not read every changed line or file.Results
usearch_setTextFindings
Blocking
None.
Non-blocking
None.
Not verified
The full PR was not reviewed: changes to ICU data generation, break iterators, collators, allocator configuration, and other string-search APIs were not inspected. Tests were not run, and console behavior remains unverified. The author reports the
guest_icu_recovered_signatures_testspassed on Linux and Windows.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-27T10:47:20Z.
Review: COMMENTED
Actionable comments posted: 3
477a2282-c922-40da-96c9-8959198ebd9eReviewing files that changed from the base of the PR and between
aa90a0e32aand0cf4fc040e.cmake/IcuData.cmakecmake/icu-host/CMakeLists.txtcore/libs/prx/libSceIcu/BreakIterator.cppcore/libs/prx/libSceIcu/Collator.cppcore/libs/prx/libSceIcu/StringSearch.cppcore/libs/prx/libSceIcu/StringSearchHost.cppcore/libs/prx/libSceIcu/tests/Collator.cppcore/libs/prx/libSceIcu/tests/StringSearch.cppdocs/dev/debt/changes/feat-icu-string-search-open.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T11:06:28Z.
Review: COMMENTED
Reviewed — no blocking findings
The targeted review found no verified blocking defect, but the full changed-file review is incomplete.
What I ran
Head:
baee7b961fe4f740796a6f79f09a3e37dc17475f.Read the prepared description, commits, manifest, diff and review README; used
repo_read.pysearch and read operations for targeted source and test context. No build or test command was run.Results
Findings
Blocking
None verified in the targeted code reviewed.
Non-blocking
None.
Not verified
The review did not read all changed lines listed in the manifest, including most build and ICU data changes, collator and break-iterator changes, and most tests and documentation. The modified
StringSearch.cpp,StringSearchHost.cpp,BreakIterator.cpp, andtests/StringSearch.cppwere read for targeted context; other changed files were not read. Files excluded by the prepared diff rules were not inspected. The reported Linux and Windows test runs were author-reported and not independently verified.To get this to a good state
Nothing is required. Optional: complete review of the remaining changed-file additions before treating this as a full review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T11:21:58Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
Changes are required before merge: retain the old text buffer only when the failed ICU update may still reference it; failed updates currently accumulate retained buffers indefinitely.
What I ran
Reviewed head
037fc442393ae2d197cc6112eeff8d84399dd0fb. No commands or tests were run in this review; the description reports Linux and Windows test runs, which I did not independently verify.Results
Findings
Blocking
core/libs/prx/libSceIcu/StringSearch.cpp:288: Eachusearch_setTextcall moves the current text intoretainedTextsbefore ICU reports whether it accepted the replacement. On every failed update,retainedTextsremains uncleared, so repeated invalid updates grow memory without bound for the lifetime of the search object. Preserve the old buffer when ICU may still reference it, but reclaim buffers that are no longer needed after failure (or otherwise bound retained storage).Non-blocking
None.
Not verified
No source files in the bundle were excluded, and the changed file inventory marks all changed files as included. This review read
StringSearch.cppandStringSearchHost.cpp; the remaining changed files and test sources were not read. Build and test claims indescription.mdwere not independently verified.To get this to a good state
Fix the unbounded retained-text growth on repeated failed updates, then rerun the string search tests on the new head.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-27T11:27:57Z.
Review: COMMENTED
ad7a0c41-3593-4b60-abee-5297a5eb4351Reviewing files that changed from the base of the PR and between
baee7b961fand 037fc442393ae2d197cc6112eeff8d84399dd0fb.cmake/IcuData.cmakecmake/icu-host/CMakeLists.txtcore/libs/prx/libSceIcu/BreakIterator.cppcore/libs/prx/libSceIcu/Collator.cppcore/libs/prx/libSceIcu/StringSearch.cppcore/libs/prx/libSceIcu/StringSearchHost.cppcore/libs/prx/libSceIcu/StringSearchHost.hppcore/libs/prx/libSceIcu/tests/BreakIterator.cppcore/libs/prx/libSceIcu/tests/Collator.cppcore/libs/prx/libSceIcu/tests/StringSearch.cppdocs/dev/debt/changes/feat-libsceicu-data-break-iterator.mdLimit details: You’ve used all 10 included reviews currently available.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T11:58:29Z.
Review: COMMENTED
Reviewed — comments
The string search update path can retain a dangling text buffer after ICU reports an error, so that path needs correction before its behavior can be considered fully verified.
What I ran
Reviewed head
5f10a06b38bfff4cbbc63dc8fcb345347610a50dusing the prepared diff and pinned reader. No build or tests were run; the Linux and Windows test results in the description are author-reported.Results
Findings
Blocking
None verified.
Non-blocking
core/libs/prx/libSceIcu/StringSearch.cpp:292updates ICU's text pointer before checking its status. Ifusearch_setTextfails, the code retains the old buffer inretainedTextsand leaves ICU potentially pointing at the replacement buffer, which is destroyed when the function returns. Keep the candidate buffer alive until the native call succeeds; on failure, restore a valid text binding or retain the candidate for the lifetime of the search.Not verified
Read the changed string-search implementation and host adapter, its tests, the cleanup path, the data-generation files, the break-iterator excerpt, and the manifest and prepared diff. The remaining changed files and their added lines were not read.
files.jsonwas unavailable through the reader; the prepared manifest and review folder listing show all changed files included. No commands were run, and console behavior was not verified.To get this to a good state
Nothing is required. Optional: harden the failed
usearch_setTextpath as described above.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T14:15:55Z.
Review: COMMENTED
Reviewed — no blocking findings
The
usearch_setTextimplementation keeps guest text in owned storage and preserves prior buffers if ICU rejects an update; this review is incomplete because the PR changes many files whose added lines were not all read.What I ran
Reviewed head
36ac07c3ddd7d3b804314f6ce1b0602138a8f266usingrepo_read.pyto inspect the prepared diff and targeted repository source. No build or tests were run.Results
Findings
Blocking
None identified in the inspected
usearch_setTextpath.Non-blocking
None.
Not verified
The review folder lists 48 changed files. I read the review description, commits, manifest, README, diff excerpts,
StringSearch.cpp,StringSearchHost.cpp, andtests/StringSearch.cpp. I did not read all added lines in the changed files, including the ICU build/data setup, break iterator and collator implementations, and other tests and documentation. No checks were run; the Linux and Windows test results are author-reported. Console behavior was not verified.To get this to a good state
Nothing is required. Optional point: complete review of the remaining changed lines before treating this as a full PR review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T15:58:53Z.
Review: COMMENTED
Reviewed — comments
This review covers the
usearch_setTextchange at headcb91e1c7db4e8dcbd37b06f2edca47ddd179c268; the full pull request was not reviewed, so a formal approval is not justified.What I ran
Read the prepared description, commits, manifest and diff, then inspected the changed
usearch_setTextimplementation, its host adapter and relevant tests throughrepo_read.py. No tests or builds were run. The author reports passing Linux and Windows test runs in the description; these were not independently verified.Results
usearch_setTextpath inspectedFindings
Blocking
None identified in the inspected
usearch_setTextpath.Non-blocking
None.
Not verified
The review did not inspect the remaining changed files or audit the complete pull request for correctness, security, performance, or test coverage. The prepared manifest lists 41 changed files, all marked included; this review read only
core/libs/prx/libSceIcu/StringSearch.cpp,core/libs/prx/libSceIcu/StringSearchHost.cpp, andcore/libs/prx/libSceIcu/tests/StringSearch.cppfrom the repository, in addition to the prepared review artifacts. No files were excluded by the manifest, but most included changed files were not read. No independent build, tests, console behavior, or author-reported results were verified.To get this to a good state
Nothing is required for the inspected
usearch_setTextpath. Complete review of the other changed files before making a formal PR decision.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T20:35:19Z.
Review: APPROVED
Reviewed — looks good
Nothing in the reviewed
usearch_setTextchange shows a blocking defect; the draft’s source and test evidence supports merging.What I ran
Reviewed head
d38f628d01154f9e4cce291c6edf8d95ab1335b6. No commands or tests were run. Read the prepared description, commits, manifest, diff,StringSearch.cpp,StringSearchHost.cpp, and the relevantStringSearch.cpptest ranges. The changed files are included in the review bundle; no repository files were excluded by rule in the manifest.Results
usearch_setTextpath inspectedFindings
Blocking
None.
Non-blocking
None.
Not verified
The broader PR changes outside the string-search implementation and its tests were not reviewed. The Linux and Windows runs are author-reported, not runs performed in this review. Console ABI and behavior remain unverified.
To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-29T10:26:35Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
What I ran
Reviewed head
8a8775eba95936142b3173402a1001d34d363a8ausingrepo_read.pyagainst the prepared review bundle and pinned repository. No tests or builds were run in this session.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The change spans build configuration, ICU data generation, break iterators, collators, and string search. I read the prepared diff and targeted code around
usearch_setText, its state, and its tests; I did not read every changed file. No build, test, or runtime behavior was verified in this session. The manifest marks all files as included;files.jsonwas not available through the reader.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-30T10:11:35Z.
Review: COMMENTED
Reviewed — comments
Changes are required before merge: clarify or correct the interaction between
usearch_setTextand ICU's internal break iterator when a text update fails.What I ran
Reviewed head
fb8e6dbe4ac4d74d4a5da41709063d49b5a7ad6b. No build or tests were run; the Linux and Windows runs in the PR description are author-reported.Results
Findings
Blocking
None verified.
Non-blocking
usearch_setTextretains the old text buffer on an ICU error, but the wrapper does not restore the search object's text pointer ifusearch_setTextpartially updates internal state before returning that error. The tested error behavior appears limited to invalid arguments, which are rejected before this call; allocation or other failures during ICU's update are not covered. Please add a failure-path test that exercises ICU's update failure after entry and confirm that subsequent operations remain valid, or explicitly establish that this call cannot fail after mutating its state. (core/libs/prx/libSceIcu/StringSearch.cpp:288-294)Not verified
No tests or builds were run, and console ABI/behavior were not verified. Reviewed changed source ranges in
StringSearch.cpp,StringSearchHost.cpp,Collator.cpp,CollatorHost.cpp,BreakIterator.cpp,Configuration.cpp,IcuData.cmake,tests/StringSearch.cpp,tests/BreakIterator.cpp, andtests/Data.cpp; reviewed the prepared diff, description, commits, manifest and review README. The manifest lists 47 changed files; all other changed files and changed lines were not read. No files were marked excluded in the available manifest excerpt, but the complete exclusion list was not verified.To get this to a good state
Nothing is required to resolve a blocking defect; the point above is optional.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-30T18:59:14Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
What I ran
Reviewed PR 27184 at head
5080e9c2ee9bf25a0ba5e02c4f1f826448a500f2. I inspected the prepared metadata and relevant diff sections, then read the three implementation and test files listed below. No tests or builds were run; the author-reported test results were not independently verified.Results
Negative control
Not run; no tests were run.
Findings
Blocking
None verified in the files inspected.
Non-blocking
None.
Sources
Not verified
The prepared description, commits, manifest, diff, and files list were read. Of the 50 files listed for review, only
StringSearch.cpp,StringSearchHost.cpp, andtests/StringSearch.cppwere read in full. Other changed code, including ICU data packaging, collation, break iteration, exports, build configuration, documentation, and associated tests, was not audited. No files were excluded by the supplied rules.To get this to a good state
Nothing is required. The review is incomplete, so it does not support approval of the full PR.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-02T01:38:17Z.
Review: COMMENTED
Reviewed — no blocking findings
The
usearch_setTextpath was inspected at head71f9ef53cdc2c9b118904a25a96127447437bb72; the full pull request was not reviewed, so a formal decision is not justified.What I ran
Source inspection only. No tests or builds were run. The review reader returned a partial
StringSearch.cpprange; later reader calls could not complete because it could not write its read log.Read the change description, commit list, manifest, diff, file exclusions,
StringSearch.cpp,StringSearchHost.cpp, and part oftests/StringSearch.cpp.Results
Negative control
Could not be run because no tests were executed.
Findings
Blocking
None identified in the inspected code.
Non-blocking
None identified in the inspected code.
Sources
Not verified
The manifest lists 47 changed files; source inspection covered three of them, with the test file only partly read. The other changed files and the remaining portions of the inspected files were not verified. No console behavior or author-reported checks were independently confirmed.
To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-02T12:57:13Z.
Review: COMMENTED
Reviewed — no blocking findings
I found no verified blocker in the four changed source files I inspected; the review is incomplete because the other changed files were not audited.
What I ran
Reviewed head
cb6c119bfdfc851eba06da04e51a98aebb32812c. I inspected the prepared description, commit list, manifest, selected diff hunks, and source snapshots. No build or tests were run. The description reports three tests passing, but that result was not independently verified.Results
Findings
Blocking
None verified in the inspected files.
Non-blocking
None.
Sources
StringSearch.cppat the reviewed headStringSearch.cpptests at the reviewed headNot verified
Read:
core/libs/prx/libSceIcu/StringSearch.cpp,core/libs/prx/libSceIcu/StringSearchHost.cpp,core/libs/prx/libSceIcu/StringSearchHost.hpp, andcore/libs/prx/libSceIcu/tests/StringSearch.cpp(targeted portions). The other 46 changed files listed inmanifest.jsonwere not inspected.files.jsonlists no files excluded by rule.To get this to a good state
Nothing is required. Optional: inspect the remaining changed files before making a formal approval decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-02T16:36:10Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
What I ran
Reviewed head
aeebd54897303a71a97fc57b305cfae830c2b359. Read the prepared description, commits, manifest, diff,StringSearch.cpplines 1–50,StringSearchHost.cpp, and theStringSearch.cppandStringSearchtest hunks. No commands or tests were run. The author-reported checks were not independently verified.Results
Negative control
Not run.
Findings
Blocking
None identified in the portions reviewed.
Non-blocking
None.
Not verified
files.jsonlists 51 reviewed files and no exclusions. I did not read every listed file, so the review is incomplete; the other changed files and the uninspected portions ofStringSearch.cppwere not verified. Console behavior was not verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-02T19:19:06Z.
Review: COMMENTED
Reviewed — comments
This review covers the string-search implementation and its tests at head
cf6f47ed3febc7380d3df5bee63e23e5904f6da9; the broader change set was not fully inspected.What I ran
Inspected the prepared description, commit list, manifest, diff, and file inventory, plus the prepared full text for the four string-search source and test files. The pinned reader could not return source context because it attempted to append to a read-only run folder. No tests were run.
Results
Negative control
Not run; no tests were executed.
Findings
Blocking
None in the inspected files.
Non-blocking
No code findings in the inspected string-search implementation and tests.
Sources
The inspected implementation copies guest text into owned storage and keeps prior buffers available until ICU accepts the replacement: StringSearch.cpp at the reviewed head. The host adapter delegates the update to ICU: StringSearchHost.cpp at the reviewed head.
Not verified
Read from
files/:core/libs/prx/libSceIcu/StringSearch.cpp,core/libs/prx/libSceIcu/StringSearchHost.cpp,core/libs/prx/libSceIcu/StringSearchHost.hpp, andcore/libs/prx/libSceIcu/tests/StringSearch.cpp. Also inspected the prepared description, commits, manifest, diff, andfiles.json. The remaining 47 files listed underreviewedinfiles.jsonwere not fully inspected; that inventory lists no rule-excluded files. Tests, console behavior, and author-reported CI results were not independently verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T12:33:51Z.
Review: COMMENTED
Built the branch’s string-search sources on Linux with ICU 78.1 and ran the fixture’s
CheckIcuStringSearchcases directly. They passed, including the text replacement cases.AI-assisted: yes.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.