feat(libSceIcu): implement the resource bundle accessors #24288

Closed
larpsahur333 wants to merge 1 commit from upstream-pr/24288 into main
larpsahur333 commented 2026-11-20 13:07:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by larpsahur333 on 2026-11-20T13:07:02Z.


What

Twelve libSceIcu exports that answered NotImplemented_nid_no_patch now read the bundle:

  • ures_getKey - the key pointer at offset 0
  • ures_getType - the resource word at offset 172, type in the top four bits, with reserved type 15 reported as URES_NONE
  • ures_getSize - the item count at offset 196
  • ures_hasNext - the iterator index at offset 192 against the size
  • ures_getString - checks the type, follows fResData.pRoot at offset 48, reads the unit count that prefixes the string and returns the units past it
  • ures_getInt - reads the value out of an integer resource word
  • ures_getIntVector - returns the length-prefixed vector past its prefix
  • ures_getBinary - returns the length-prefixed bytes past their prefix
  • ures_getLocaleByType - returns the actual (offset 8) or valid (offset 24) locale name
  • ures_getByKey - finds a table entry by key, comparing the table's pool strings through a bounded guest read, and fills the caller's bundle with the found resource
  • ures_getByIndex - returns an array item by index and fills the caller's bundle
  • ures_getStringByKey - looks the entry up into a stack bundle zeroed with ures_initStackObject, then delegates the string read to ures_getString

The layout is the ICU 68.2 UResourceBundle from uresimp.h together with the ResourceData at offset 40: 200 bytes, pRoot at 48, fRes at 172, fIndex at 192, fSize at 196. Every field is copied through GuestCopyIn before it is read, and the child bundle and every out-parameter are written through GuestCopyOut. ures_getByKey copies the caller's key and every pool key through ReadGuestString, which reads one byte per CopyIn into a 256-byte buffer and accepts at most 254 characters plus the terminator; a longer or unterminated caller key fails with U_ILLEGAL_ARGUMENT_ERROR and a pool key that does not terminate inside the cap is skipped.

Still unsupported: pool bundles report U_UNSUPPORTED_ERROR, fallback chains are not searched so a missing key reports U_MISSING_RESOURCE_ERROR, and table-by-index reports U_RESOURCE_TYPE_MISMATCH. The by-key string path shares ures_getString's limits, so type-6 pool-bundle strings and fallback chains stay unsupported there too.

Tested

guest_icu_resource_accessors (core/libs/prx/libSceIcu/tests/ResourceAccessors.cpp) passes. It builds synthetic 200-byte bundles and resource pools, so no icudt data is needed:

  • the key pointer comes back unchanged, the integer type reads as 7, the size as 3
  • ures_hasNext reports a following item at index 1, none at index 2, and one at index 0
  • reserved type 15 reports URES_NONE and type 0 reports a string
  • ures_getString returns the pool units past the length prefix (the pointer offset is asserted, not just the contents), reports the length, rejects an integer resource with a type mismatch and a null bundle with an illegal argument
  • ures_getByKey finds a two-entry table, returns the integer 7 from ures_getInt, returns the key pointer and the string entry, and reports U_MISSING_RESOURCE_ERROR for a missing key and U_ILLEGAL_ARGUMENT_ERROR for a null fill-in
  • ures_getByKey rejects a 300-character caller key with U_ILLEGAL_ARGUMENT_ERROR, and skips a pool key with no NUL inside the 254-character cap so the lookup reports U_MISSING_RESOURCE_ERROR
  • ures_getStringByKey returns the table's string entry unit by unit (u'h', u'i') with its length, rejects the integer entry with U_RESOURCE_TYPE_MISMATCH, reports U_MISSING_RESOURCE_ERROR for a missing key, and answers null for a null status without writing through it
  • ures_getByIndex returns 11, 22 and 33 from a three-integer array, reports the scalar child size, and rejects an out-of-range index and a table
  • the null bundle answers null, URES_NONE, 0 and false respectively

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
  • 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
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5413839046 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24288). Originally posted by [larpsahur333](https://github.com/larpsahur333) on 2026-11-20T13:07:02Z. --- ### What Twelve `libSceIcu` exports that answered `NotImplemented_nid_no_patch` now read the bundle: - `ures_getKey` - the key pointer at offset 0 - `ures_getType` - the resource word at offset 172, type in the top four bits, with reserved type 15 reported as `URES_NONE` - `ures_getSize` - the item count at offset 196 - `ures_hasNext` - the iterator index at offset 192 against the size - `ures_getString` - checks the type, follows `fResData.pRoot` at offset 48, reads the unit count that prefixes the string and returns the units past it - `ures_getInt` - reads the value out of an integer resource word - `ures_getIntVector` - returns the length-prefixed vector past its prefix - `ures_getBinary` - returns the length-prefixed bytes past their prefix - `ures_getLocaleByType` - returns the actual (offset 8) or valid (offset 24) locale name - `ures_getByKey` - finds a table entry by key, comparing the table's pool strings through a bounded guest read, and fills the caller's bundle with the found resource - `ures_getByIndex` - returns an array item by index and fills the caller's bundle - `ures_getStringByKey` - looks the entry up into a stack bundle zeroed with `ures_initStackObject`, then delegates the string read to `ures_getString` The layout is the ICU 68.2 `UResourceBundle` from `uresimp.h` together with the `ResourceData` at offset 40: 200 bytes, `pRoot` at 48, `fRes` at 172, `fIndex` at 192, `fSize` at 196. Every field is copied through `GuestCopyIn` before it is read, and the child bundle and every out-parameter are written through `GuestCopyOut`. `ures_getByKey` copies the caller's key and every pool key through `ReadGuestString`, which reads one byte per `CopyIn` into a 256-byte buffer and accepts at most 254 characters plus the terminator; a longer or unterminated caller key fails with `U_ILLEGAL_ARGUMENT_ERROR` and a pool key that does not terminate inside the cap is skipped. Still unsupported: pool bundles report `U_UNSUPPORTED_ERROR`, fallback chains are not searched so a missing key reports `U_MISSING_RESOURCE_ERROR`, and table-by-index reports `U_RESOURCE_TYPE_MISMATCH`. The by-key string path shares `ures_getString`'s limits, so type-6 pool-bundle strings and fallback chains stay unsupported there too. ### Tested `guest_icu_resource_accessors` (`core/libs/prx/libSceIcu/tests/ResourceAccessors.cpp`) passes. It builds synthetic 200-byte bundles and resource pools, so no `icudt` data is needed: - the key pointer comes back unchanged, the integer type reads as 7, the size as 3 - `ures_hasNext` reports a following item at index 1, none at index 2, and one at index 0 - reserved type 15 reports `URES_NONE` and type 0 reports a string - `ures_getString` returns the pool units past the length prefix (the pointer offset is asserted, not just the contents), reports the length, rejects an integer resource with a type mismatch and a null bundle with an illegal argument - `ures_getByKey` finds a two-entry table, returns the integer 7 from `ures_getInt`, returns the key pointer and the string entry, and reports `U_MISSING_RESOURCE_ERROR` for a missing key and `U_ILLEGAL_ARGUMENT_ERROR` for a null fill-in - `ures_getByKey` rejects a 300-character caller key with `U_ILLEGAL_ARGUMENT_ERROR`, and skips a pool key with no NUL inside the 254-character cap so the lookup reports `U_MISSING_RESOURCE_ERROR` - `ures_getStringByKey` returns the table's string entry unit by unit (`u'h'`, `u'i'`) with its length, rejects the integer entry with `U_RESOURCE_TYPE_MISMATCH`, reports `U_MISSING_RESOURCE_ERROR` for a missing key, and answers null for a null status without writing through it - `ures_getByIndex` returns 11, 22 and 33 from a three-integer array, reports the scalar child size, and rejects an out-of-range index and a table - the null bundle answers null, `URES_NONE`, 0 and false respectively ### Checklist - [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 and the licence notice of code adapted from upstream - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's technical debt file - [x] No notes, investigation `.md` files or images added to the repository - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-11-20 13:15:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T13:15:03Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

Changes are required before merge: route guest output writes through CopyOut so invalid guest pointers are handled safely.

What I ran

Reviewed head dcb8ac8b5f166c9f3ebb5753c69b73bb74e6d04f using the pinned repo_read.py reader. I did not run build or test commands; no merged-preview check was run.

Results

Check Result Note
Diff and targeted source review passed Changed behavior inspected
Build and tests not run Not executed in this review

Negative control

Not run; no test was run to confirm that an invalid guest output pointer fails safely.

Findings

Blocking

  • core/libs/prx/libSceIcu/ResourceBundle.cpp:197 writes directly through the guest length pointer before using CopyOut at line 239. The same direct write occurs in the string, vector, and binary accessors. An invalid guest pointer can therefore fault the host process before the guarded copy handles it. Remove the direct writes and use CopyOut for each length output, including initialization to zero.

Non-blocking

None.

Sources

Not verified

The build, test results, and runtime behavior on a physical console were not verified. Read: core/libs/prx/libSceIcu/CMakeLists.txt, core/libs/prx/libSceIcu/LegacyExports.cpp (changed regions), core/libs/prx/libSceIcu/RecoveredSignatures.hpp, core/libs/prx/libSceIcu/ResourceBundle.cpp, core/libs/prx/libSceIcu/include/LegacyExports.hpp (header beginning; the diff’s removed declarations were reviewed), core/libs/prx/libSceIcu/tests/ResourceAccessors.cpp, and docs/dev/debt/changes/feat-libsceicu-ures-accessors.md. No changed files were excluded by the prepared manifest.

To get this to a good state

Use CopyOut for every write through length, including the initial zero value, then rerun the accessor test and relevant build checks on the updated head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5993261444 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24288#pullrequestreview-5993261444). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T13:15:03Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested Changes are required before merge: route guest output writes through `CopyOut` so invalid guest pointers are handled safely. ## What I ran Reviewed head `dcb8ac8b5f166c9f3ebb5753c69b73bb74e6d04f` using the pinned `repo_read.py` reader. I did not run build or test commands; no merged-preview check was run. ## Results | Check | Result | Note | |---|---|---| | Diff and targeted source review | passed | Changed behavior inspected | | Build and tests | not run | Not executed in this review | ## Negative control Not run; no test was run to confirm that an invalid guest output pointer fails safely. ## Findings ### Blocking - `core/libs/prx/libSceIcu/ResourceBundle.cpp:197` writes directly through the guest `length` pointer before using `CopyOut` at line 239. The same direct write occurs in the string, vector, and binary accessors. An invalid guest pointer can therefore fault the host process before the guarded copy handles it. Remove the direct writes and use `CopyOut` for each length output, including initialization to zero. ### Non-blocking None. ## Sources - [Changed accessor implementation at the reviewed commit](https://github.com/boykopovar/AnyPS5/blob/dcb8ac8b5f166c9f3ebb5753c69b73bb74e6d04f/core/libs/prx/libSceIcu/ResourceBundle.cpp) ## Not verified The build, test results, and runtime behavior on a physical console were not verified. Read: `core/libs/prx/libSceIcu/CMakeLists.txt`, `core/libs/prx/libSceIcu/LegacyExports.cpp` (changed regions), `core/libs/prx/libSceIcu/RecoveredSignatures.hpp`, `core/libs/prx/libSceIcu/ResourceBundle.cpp`, `core/libs/prx/libSceIcu/include/LegacyExports.hpp` (header beginning; the diff’s removed declarations were reviewed), `core/libs/prx/libSceIcu/tests/ResourceAccessors.cpp`, and `docs/dev/debt/changes/feat-libsceicu-ures-accessors.md`. No changed files were excluded by the prepared manifest. ## To get this to a good state Use `CopyOut` for every write through `length`, including the initial zero value, then rerun the accessor test and relevant build checks on the updated head.
PrivacyOnion commented 2026-11-20 13:55:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-20T13:55:04Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 3176b51874:

  • Conventions: tools/check_conventions.py passed.
  • Build: guest_icu_resource_accessors_tests built cleanly.
  • CTest (guest_icu_resource_accessors):
    1/1 Test #4050: guest_icu_resource_accessors .....   Passed    0.02 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceIcu/LegacyExports.cpp, core/libs/prx/libSceIcu/RecoveredSignatures.hpp, core/libs/prx/libSceIcu/ResourceBundle.cpp, core/libs/prx/libSceIcu/include/LegacyExports.hpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified ures_getType, ures_getKey, ures_getSize, and ures_hasNext handle nullptr bundles and return expected values (-1, nullptr, 0, 0)
    • Verified status checking semantics across ures_getString, ures_getInt, ures_getIntVector, ures_getBinary, and ures_getLocaleByType (early exit if currentStatus > 0)
    • Verified safe guest memory copying via GuestCopyIn (CopyIn) and GuestCopyOut (CopyOut) for all output parameters (length, status) to prevent host memory faults on invalid guest addresses
    • Verified type validation against ICU 68.2 resource bundle representations (StringType=0, BinaryType=1, IntegerType=7, IntVectorType=14, ReservedType=15 mapped to NoneType)
    • Verified technical debt fragment documentation in docs/dev/debt/changes/feat-libsceicu-ures-accessors.md conforms to repository conventions

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5993781616 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24288#pullrequestreview-5993781616). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-20T13:55:04Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `3176b51874`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `guest_icu_resource_accessors_tests` built cleanly. - **CTest** (`guest_icu_resource_accessors`): ``` 1/1 Test #4050: guest_icu_resource_accessors ..... Passed 0.02 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceIcu/LegacyExports.cpp`, `core/libs/prx/libSceIcu/RecoveredSignatures.hpp`, `core/libs/prx/libSceIcu/ResourceBundle.cpp`, `core/libs/prx/libSceIcu/include/LegacyExports.hpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified ures_getType, ures_getKey, ures_getSize, and ures_hasNext handle nullptr bundles and return expected values (-1, nullptr, 0, 0) - Verified status checking semantics across ures_getString, ures_getInt, ures_getIntVector, ures_getBinary, and ures_getLocaleByType (early exit if currentStatus > 0) - Verified safe guest memory copying via GuestCopyIn (CopyIn) and GuestCopyOut (CopyOut) for all output parameters (length, status) to prevent host memory faults on invalid guest addresses - Verified type validation against ICU 68.2 resource bundle representations (StringType=0, BinaryType=1, IntegerType=7, IntVectorType=14, ReservedType=15 mapped to NoneType) - Verified technical debt fragment documentation in docs/dev/debt/changes/feat-libsceicu-ures-accessors.md conforms to repository conventions Looks Good To Me
MarcZX10 commented 2026-11-20 13:59:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T13:59:56Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

Changes are required before merge: fix ures_hasNext so it reports an item whenever the current index is below the bundle size.

What I ran

Reviewed head 3176b51874343e7642b425ffecb6d0e483c8b616 using the prepared diff and repo_read.py for targeted source context. No tests were run.

Results

Check Result Note
Patch and source review failed Verified iterator boundary defect
Automated tests not run No commands executed

Findings

Blocking

  • core/libs/prx/libSceIcu/ResourceBundle.cpp:127 uses index < size - 1. With a size of 3 and index 2, this returns false even though the current index is still within the bundle; the test explicitly enshrines that incorrect boundary at core/libs/prx/libSceIcu/tests/ResourceAccessors.cpp:45. Use index < size instead, and cover the final valid index. This causes iteration to stop before the last item.

Non-blocking

  • None.

Not verified

No tests or build were run. Read the prepared description, commits, manifest and diff, plus the full included changed files core/libs/prx/libSceIcu/ResourceBundle.cpp, core/libs/prx/libSceIcu/tests/ResourceAccessors.cpp, core/libs/prx/libSceIcu/CMakeLists.txt, core/libs/prx/libSceIcu/RecoveredSignatures.hpp, and docs/dev/debt/changes/feat-libsceicu-ures-accessors.md. Also read targeted ranges in core/libs/prx/libc/src/General.cpp, core/libs/prx/libSceIcu/Export.cpp, and core/libs/prx/libSceIcu/tests/ResourceUInt.cpp. LegacyExports.cpp and include/LegacyExports.hpp were present in the manifest but their full texts were not read; their relevant declaration/removal hunks were inspected in the diff. No changed files were excluded according to the manifest.

To get this to a good state

Correct the iterator boundary and update the final-valid-index test; then run the resource accessor test on the new head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5993846992 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24288#pullrequestreview-5993846992). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T13:59:56Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested Changes are required before merge: fix `ures_hasNext` so it reports an item whenever the current index is below the bundle size. ## What I ran Reviewed head `3176b51874343e7642b425ffecb6d0e483c8b616` using the prepared diff and `repo_read.py` for targeted source context. No tests were run. ## Results | Check | Result | Note | |---|---|---| | Patch and source review | failed | Verified iterator boundary defect | | Automated tests | not run | No commands executed | ## Findings ### Blocking - `core/libs/prx/libSceIcu/ResourceBundle.cpp:127` uses `index < size - 1`. With a size of 3 and index 2, this returns false even though the current index is still within the bundle; the test explicitly enshrines that incorrect boundary at `core/libs/prx/libSceIcu/tests/ResourceAccessors.cpp:45`. Use `index < size` instead, and cover the final valid index. This causes iteration to stop before the last item. ### Non-blocking - None. ## Not verified No tests or build were run. Read the prepared description, commits, manifest and diff, plus the full included changed files `core/libs/prx/libSceIcu/ResourceBundle.cpp`, `core/libs/prx/libSceIcu/tests/ResourceAccessors.cpp`, `core/libs/prx/libSceIcu/CMakeLists.txt`, `core/libs/prx/libSceIcu/RecoveredSignatures.hpp`, and `docs/dev/debt/changes/feat-libsceicu-ures-accessors.md`. Also read targeted ranges in `core/libs/prx/libc/src/General.cpp`, `core/libs/prx/libSceIcu/Export.cpp`, and `core/libs/prx/libSceIcu/tests/ResourceUInt.cpp`. `LegacyExports.cpp` and `include/LegacyExports.hpp` were present in the manifest but their full texts were not read; their relevant declaration/removal hunks were inspected in the diff. No changed files were excluded according to the manifest. ## To get this to a good state Correct the iterator boundary and update the final-valid-index test; then run the resource accessor test on the new head.
MarcZX10 commented 2026-11-20 14:18:15 +00:00 (Migrated from github.com)

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

Review: CHANGES_REQUESTED


Reviewed — changes requested

The child bundle copies a pointer from the parent’s resource data, so children of non-root bundles can resolve resources through the wrong pool.

What I ran

Reviewed head a042bc33c38a77019728095b81bc0cbe9f2e3166. I read the prepared description, commits, manifest, and diff; inspected the implementation, signatures, and test source at the pinned head. No build or tests were run.

Results

Check Result Note
Diff and changed files passed Prepared review inputs inspected
Code review failed Child bundle data can retain the wrong root
Build and tests not run No execution performed

Findings

Blocking

  • core/libs/prx/libSceIcu/ResourceBundle.cpp:81-84 copies the parent’s fResData into fillIn, but does not replace the copied pRoot with the root argument used to find the child. When a parent bundle is itself a child and has different resource data, the returned child bundle keeps the parent’s root; later accessors such as ures_getString read its resource offset against that root. Copy the correct resource data for the resolved child, including its root, before returning it.

Non-blocking

  • None.

Not verified

  • The prepared manifest lists eight changed files, all marked included. Full text was read for ResourceBundle.cpp, RecoveredSignatures.hpp, and tests/ResourceAccessors.cpp; the prepared diff was read for the remaining changed files. The full text of CMakeLists.txt, Export.cpp, LegacyExports.cpp, InventoryExports.hpp, LegacyExports.hpp, and docs/dev/debt/changes/feat-libsceicu-ures-accessors.md was not inspected.
  • Build behavior and the author-reported test run were not independently confirmed.

To get this to a good state

Update FillChild so the child bundle receives the correct resource data and root for its resolved resource, then rerun the accessor test and review the new head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5994087824 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24288#pullrequestreview-5994087824). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T14:18:15Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The child bundle copies a pointer from the parent’s resource data, so children of non-root bundles can resolve resources through the wrong pool. ## What I ran Reviewed head `a042bc33c38a77019728095b81bc0cbe9f2e3166`. I read the prepared description, commits, manifest, and diff; inspected the implementation, signatures, and test source at the pinned head. No build or tests were run. ## Results | Check | Result | Note | |---|---|---| | Diff and changed files | passed | Prepared review inputs inspected | | Code review | failed | Child bundle data can retain the wrong root | | Build and tests | not run | No execution performed | ## Findings ### Blocking - `core/libs/prx/libSceIcu/ResourceBundle.cpp:81-84` copies the parent’s `fResData` into `fillIn`, but does not replace the copied `pRoot` with the `root` argument used to find the child. When a parent bundle is itself a child and has different resource data, the returned child bundle keeps the parent’s root; later accessors such as `ures_getString` read its resource offset against that root. Copy the correct resource data for the resolved child, including its root, before returning it. ### Non-blocking - None. ## Not verified - The prepared manifest lists eight changed files, all marked included. Full text was read for `ResourceBundle.cpp`, `RecoveredSignatures.hpp`, and `tests/ResourceAccessors.cpp`; the prepared diff was read for the remaining changed files. The full text of `CMakeLists.txt`, `Export.cpp`, `LegacyExports.cpp`, `InventoryExports.hpp`, `LegacyExports.hpp`, and `docs/dev/debt/changes/feat-libsceicu-ures-accessors.md` was not inspected. - Build behavior and the author-reported test run were not independently confirmed. ## To get this to a good state Update `FillChild` so the child bundle receives the correct resource data and root for its resolved resource, then rerun the accessor test and review the new head.
PrivacyOnion commented 2026-11-20 14:20:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-20T14:20:29Z.

Review: CHANGES_REQUESTED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against a042bc33c3:

  • Conventions: tools/check_conventions.py passed.
  • Build: guest_icu_resource_accessors_tests built cleanly.
  • CTest (guest_icu_resource_accessors):
    1/1 Test #4050: guest_icu_resource_accessors .....   Passed    0.01 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceIcu/Export.cpp, core/libs/prx/libSceIcu/LegacyExports.cpp, core/libs/prx/libSceIcu/RecoveredSignatures.hpp, core/libs/prx/libSceIcu/ResourceBundle.cpp, core/libs/prx/libSceIcu/include/InventoryExports.hpp, core/libs/prx/libSceIcu/include/LegacyExports.hpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified ures_getType, ures_getKey, ures_getSize, and ures_hasNext handle nullptr bundles and validate type shift and masking
    • Verified memory copy protection via CopyIn and CopyOut across all accessors to prevent invalid guest address faults
    • Verified ures_getByKey correctly parses table key offsets relative to root and compares strings
    • Verified ures_getByIndex bounds checks against both size and count before indexing table/array data
    • Verified status code propagation (IllegalArgument=1, MissingResource=2, UnsupportedError=16, ResourceTypeMismatch=17) and early-exit conditions for pre-existing error statuses
  • Concerns:
    • core/libs/prx/libSceIcu/ResourceBundle.cpp:168: ures_hasNext computes index < size - 1 ? 1 : 0. When iterating over a bundle, index represents the 0-based position of the next element; the last valid element has index size - 1. Testing index < size - 1 returns 0 (false) when index == size - 1, prematurely halting iteration before visiting the last item. It must check index < size (or index >= 0 && index < size).

Requesting changes for the points above.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5994116528 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24288#pullrequestreview-5994116528). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-20T14:20:29Z. **Review:** CHANGES_REQUESTED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `a042bc33c3`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `guest_icu_resource_accessors_tests` built cleanly. - **CTest** (`guest_icu_resource_accessors`): ``` 1/1 Test #4050: guest_icu_resource_accessors ..... Passed 0.01 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceIcu/Export.cpp`, `core/libs/prx/libSceIcu/LegacyExports.cpp`, `core/libs/prx/libSceIcu/RecoveredSignatures.hpp`, `core/libs/prx/libSceIcu/ResourceBundle.cpp`, `core/libs/prx/libSceIcu/include/InventoryExports.hpp`, `core/libs/prx/libSceIcu/include/LegacyExports.hpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified ures_getType, ures_getKey, ures_getSize, and ures_hasNext handle nullptr bundles and validate type shift and masking - Verified memory copy protection via CopyIn and CopyOut across all accessors to prevent invalid guest address faults - Verified ures_getByKey correctly parses table key offsets relative to root and compares strings - Verified ures_getByIndex bounds checks against both size and count before indexing table/array data - Verified status code propagation (IllegalArgument=1, MissingResource=2, UnsupportedError=16, ResourceTypeMismatch=17) and early-exit conditions for pre-existing error statuses - **Concerns**: - core/libs/prx/libSceIcu/ResourceBundle.cpp:168: ures_hasNext computes `index < size - 1 ? 1 : 0`. When iterating over a bundle, index represents the 0-based position of the next element; the last valid element has index `size - 1`. Testing `index < size - 1` returns 0 (false) when index == size - 1, prematurely halting iteration before visiting the last item. It must check `index < size` (or `index >= 0 && index < size`). Requesting changes for the points above.
MarcZX10 commented 2026-11-20 14:54:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T14:54:07Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

Changes are required before merge: fix unsafe key-string traversal in table lookup.

What I ran

Reviewed head d9aecf8d338a220cadabc334f440720d1339fac9 from the prepared diff and pinned reader. No build or test command was run.

Results

Check Result Note
Diff and changed code passed Core implementation and tests read
Build and tests not run No command executed

Findings

Blocking

  • ures_getByKey passes the bundle key directly to std::strcmp and derives a table key pointer from the pool offset without validating either string is NUL-terminated and in bounds. With malformed or untrusted bundle data, comparison can read beyond the guest pool and potentially crash the host process. Use bounded guest reads and validate offsets/termination before comparing. (core/libs/prx/libSceIcu/ResourceBundle.cpp:534)

Non-blocking

None.

Not verified

No build or tests were run. The included test source and docs were read. Export.cpp, LegacyExports.cpp, RecoveredSignatures.hpp, include/InventoryExports.hpp, and include/LegacyExports.hpp were listed in the manifest but their full contents were not read. No files were excluded by the provided file listing.

To get this to a good state

Validate table key offsets and bounded string contents before comparing them in ures_getByKey, then rerun the targeted accessor test and build.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5994616973 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24288#pullrequestreview-5994616973). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T14:54:07Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested Changes are required before merge: fix unsafe key-string traversal in table lookup. ## What I ran Reviewed head `d9aecf8d338a220cadabc334f440720d1339fac9` from the prepared diff and pinned reader. No build or test command was run. ## Results | Check | Result | Note | |---|---|---| | Diff and changed code | passed | Core implementation and tests read | | Build and tests | not run | No command executed | ## Findings ### Blocking - `ures_getByKey` passes the bundle key directly to `std::strcmp` and derives a table key pointer from the pool offset without validating either string is NUL-terminated and in bounds. With malformed or untrusted bundle data, comparison can read beyond the guest pool and potentially crash the host process. Use bounded guest reads and validate offsets/termination before comparing. (`core/libs/prx/libSceIcu/ResourceBundle.cpp:534`) ### Non-blocking None. ## Not verified No build or tests were run. The included test source and docs were read. `Export.cpp`, `LegacyExports.cpp`, `RecoveredSignatures.hpp`, `include/InventoryExports.hpp`, and `include/LegacyExports.hpp` were listed in the manifest but their full contents were not read. No files were excluded by the provided file listing. ## To get this to a good state Validate table key offsets and bounded string contents before comparing them in `ures_getByKey`, then rerun the targeted accessor test and build.
PrivacyOnion commented 2026-11-20 15:06:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-20T15:06:15Z.

Review: CHANGES_REQUESTED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against d9aecf8d33:

  • Conventions: tools/check_conventions.py passed.
  • Build: guest_icu_resource_accessors_tests built cleanly.
  • CTest (guest_icu_resource_accessors):
    1/1 Test #4050: guest_icu_resource_accessors .....   Passed    0.02 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceIcu/Export.cpp, core/libs/prx/libSceIcu/LegacyExports.cpp, core/libs/prx/libSceIcu/RecoveredSignatures.hpp, core/libs/prx/libSceIcu/ResourceBundle.cpp, core/libs/prx/libSceIcu/include/InventoryExports.hpp, core/libs/prx/libSceIcu/include/LegacyExports.hpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified ures_hasNext iterator boundary against ICU UResourceBundle semantics (index < size vs index < size - 1) in core/libs/prx/libSceIcu/ResourceBundle.cpp:168
    • Verified ures_getStringByKey stack bundle lifecycle and string pointer lifetime after stack object deallocation in core/libs/prx/libSceIcu/ResourceBundle.cpp:468-489
    • Checked null pointer, status checks, and GuestCopyIn/GuestCopyOut boundaries across all 12 accessors (ures_getType, ures_getKey, ures_getSize, ures_hasNext, ures_getString, ures_getInt, ures_getIntVector, ures_getBinary, ures_getLocaleByType, ures_getByKey, ures_getByIndex, ures_getStringByKey)
    • Verified table key lookup and byte offset calculations in ures_getByKey (core/libs/prx/libSceIcu/ResourceBundle.cpp:419-432)
    • Verified AGENTS.md compliance regarding comments, debt fragments (docs/dev/debt/changes/feat-libsceicu-ures-accessors.md), and CMake test targets
  • Concerns:
    • core/libs/prx/libSceIcu/ResourceBundle.cpp:168: ures_hasNext checks return index < size - 1 ? 1 : 0;. When iterating a bundle with size elements, indices 0 through size - 1 are valid elements. If index == size - 1 (the last element), index < size - 1 evaluates to false (0), prematurely indicating no more elements before reading the final element. It should be return index < size ? 1 : 0;.
    • core/libs/prx/libSceIcu/ResourceBundle.cpp:425: In ures_getByKey, std::strcmp(key, keyText) dereferences keyText = reinterpret_cast<const char*>(root + keyOffset) directly in host memory without verifying that keyText or root + keyOffset is within the guest allocated resource bounds or null-terminated, creating potential out-of-bounds guest memory reads on malformed bundle data.

Requesting changes for the points above.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5994815149 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24288#pullrequestreview-5994815149). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-20T15:06:15Z. **Review:** CHANGES_REQUESTED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `d9aecf8d33`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `guest_icu_resource_accessors_tests` built cleanly. - **CTest** (`guest_icu_resource_accessors`): ``` 1/1 Test #4050: guest_icu_resource_accessors ..... Passed 0.02 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceIcu/Export.cpp`, `core/libs/prx/libSceIcu/LegacyExports.cpp`, `core/libs/prx/libSceIcu/RecoveredSignatures.hpp`, `core/libs/prx/libSceIcu/ResourceBundle.cpp`, `core/libs/prx/libSceIcu/include/InventoryExports.hpp`, `core/libs/prx/libSceIcu/include/LegacyExports.hpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified ures_hasNext iterator boundary against ICU UResourceBundle semantics (index < size vs index < size - 1) in core/libs/prx/libSceIcu/ResourceBundle.cpp:168 - Verified ures_getStringByKey stack bundle lifecycle and string pointer lifetime after stack object deallocation in core/libs/prx/libSceIcu/ResourceBundle.cpp:468-489 - Checked null pointer, status checks, and GuestCopyIn/GuestCopyOut boundaries across all 12 accessors (ures_getType, ures_getKey, ures_getSize, ures_hasNext, ures_getString, ures_getInt, ures_getIntVector, ures_getBinary, ures_getLocaleByType, ures_getByKey, ures_getByIndex, ures_getStringByKey) - Verified table key lookup and byte offset calculations in ures_getByKey (core/libs/prx/libSceIcu/ResourceBundle.cpp:419-432) - Verified AGENTS.md compliance regarding comments, debt fragments (docs/dev/debt/changes/feat-libsceicu-ures-accessors.md), and CMake test targets - **Concerns**: - core/libs/prx/libSceIcu/ResourceBundle.cpp:168: `ures_hasNext` checks `return index < size - 1 ? 1 : 0;`. When iterating a bundle with `size` elements, indices `0` through `size - 1` are valid elements. If `index == size - 1` (the last element), `index < size - 1` evaluates to `false` (0), prematurely indicating no more elements before reading the final element. It should be `return index < size ? 1 : 0;`. - core/libs/prx/libSceIcu/ResourceBundle.cpp:425: In `ures_getByKey`, `std::strcmp(key, keyText)` dereferences `keyText = reinterpret_cast<const char*>(root + keyOffset)` directly in host memory without verifying that `keyText` or `root + keyOffset` is within the guest allocated resource bounds or null-terminated, creating potential out-of-bounds guest memory reads on malformed bundle data. Requesting changes for the points above.
PrivacyOnion commented 2026-11-20 15:39:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-20T15:39:10Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against cc0ac93e56:

  • Conventions: tools/check_conventions.py passed.
  • Build: guest_icu_resource_accessors_tests built cleanly.
  • CTest (guest_icu_resource_accessors):
    1/1 Test #4050: guest_icu_resource_accessors .....   Passed    0.02 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceIcu/Export.cpp, core/libs/prx/libSceIcu/LegacyExports.cpp, core/libs/prx/libSceIcu/RecoveredSignatures.hpp, core/libs/prx/libSceIcu/ResourceBundle.cpp, core/libs/prx/libSceIcu/include/InventoryExports.hpp, core/libs/prx/libSceIcu/include/LegacyExports.hpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified ures_getType_nid_postfix, ures_getKey_nid_postfix, ures_getSize_nid_postfix, and ures_hasNext_nid_postfix handle null resB pointers and properly copy bundle fields via CopyIn.
    • Verified ures_getString_nid_postfix, ures_getInt_nid_postfix, ures_getIntVector_nid_postfix, and ures_getBinary_nid_postfix correctly initialize length to 0, check status > 0, validate resource types, check root pointers, and use CopyIn/CopyOut.
    • Verified ures_getByKey_nid_postfix, ures_getByIndex_nid_postfix, and ures_getStringByKey_nid_postfix validate null arguments, bounds, index ranges, and handle memory safely via bounded ReadGuestString.
    • Audited AGENTS.md compliance, confirming no prohibited comments were introduced, export declarations and legacy/inventory stubs are cleanly balanced, and conventions and test suites pass.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5995275314 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24288#pullrequestreview-5995275314). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-20T15:39:10Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `cc0ac93e56`: - **Conventions**: `tools/check_conventions.py` passed. - **Build**: `guest_icu_resource_accessors_tests` built cleanly. - **CTest** (`guest_icu_resource_accessors`): ``` 1/1 Test #4050: guest_icu_resource_accessors ..... Passed 0.02 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceIcu/Export.cpp`, `core/libs/prx/libSceIcu/LegacyExports.cpp`, `core/libs/prx/libSceIcu/RecoveredSignatures.hpp`, `core/libs/prx/libSceIcu/ResourceBundle.cpp`, `core/libs/prx/libSceIcu/include/InventoryExports.hpp`, `core/libs/prx/libSceIcu/include/LegacyExports.hpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified ures_getType_nid_postfix, ures_getKey_nid_postfix, ures_getSize_nid_postfix, and ures_hasNext_nid_postfix handle null resB pointers and properly copy bundle fields via CopyIn. - Verified ures_getString_nid_postfix, ures_getInt_nid_postfix, ures_getIntVector_nid_postfix, and ures_getBinary_nid_postfix correctly initialize length to 0, check status > 0, validate resource types, check root pointers, and use CopyIn/CopyOut. - Verified ures_getByKey_nid_postfix, ures_getByIndex_nid_postfix, and ures_getStringByKey_nid_postfix validate null arguments, bounds, index ranges, and handle memory safely via bounded ReadGuestString. - Audited AGENTS.md compliance, confirming no prohibited comments were introduced, export declarations and legacy/inventory stubs are cleanly balanced, and conventions and test suites pass. Looks Good To Me
MarcZX10 commented 2026-11-20 15:39:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T15:39:43Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

Changes are required before merge: remove the fixed key-length limitation so valid table entries are not reported missing.

What I ran

  • Reviewed head cc0ac93e56ef699861ac3d5fb5c4ae307653ea56; base main was not merged or checked.
  • Read description.md, commits.md, manifest.json, diff.patch, ResourceBundle.cpp, InventoryExports.hpp, InventoryDispatch.hpp, and the relevant CMakeLists.txt section. All changed files were included in the bundle; I read the implementation but not the full test source or other changed files.
  • No commands or tests were run; repository reader was repo_read.py.

Results

Check Result Note
Diff and targeted code review passed One verified defect
Tests not run Author reports a passing test
Full changed-file review not run Not every changed file was read

Findings

Blocking

  • core/libs/prx/libSceIcu/ResourceBundle.cpp:437: Table key comparison reads each candidate into a 256-byte buffer. Keys that do not terminate within that buffer are skipped at line 438, causing a valid key lookup to return U_MISSING_RESOURCE_ERROR. Read candidate keys without imposing this limit, or compare incrementally against the requested key.

Non-blocking

None.

Not verified

  • Tests and build were not run. The author reports guest_icu_resource_accessors passes.
  • Did not read the full text of CMakeLists.txt, Export.cpp, LegacyExports.cpp, RecoveredSignatures.hpp, InventoryExports.hpp, LegacyExports.hpp, or tests/ResourceAccessors.cpp.
  • Console behavior and ICU data from real bundles were not verified.

To get this to a good state

Support valid table keys longer than 255 bytes, add coverage for a long key, and rerun the resource accessor test on the updated head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5995282853 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24288#pullrequestreview-5995282853). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T15:39:43Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested Changes are required before merge: remove the fixed key-length limitation so valid table entries are not reported missing. ## What I ran - Reviewed head `cc0ac93e56ef699861ac3d5fb5c4ae307653ea56`; base `main` was not merged or checked. - Read `description.md`, `commits.md`, `manifest.json`, `diff.patch`, `ResourceBundle.cpp`, `InventoryExports.hpp`, `InventoryDispatch.hpp`, and the relevant `CMakeLists.txt` section. All changed files were included in the bundle; I read the implementation but not the full test source or other changed files. - No commands or tests were run; repository reader was `repo_read.py`. ## Results | Check | Result | Note | |---|---|---| | Diff and targeted code review | passed | One verified defect | | Tests | not run | Author reports a passing test | | Full changed-file review | not run | Not every changed file was read | ## Findings ### Blocking - `core/libs/prx/libSceIcu/ResourceBundle.cpp:437`: Table key comparison reads each candidate into a 256-byte buffer. Keys that do not terminate within that buffer are skipped at line 438, causing a valid key lookup to return `U_MISSING_RESOURCE_ERROR`. Read candidate keys without imposing this limit, or compare incrementally against the requested key. ### Non-blocking None. ## Not verified - Tests and build were not run. The author reports `guest_icu_resource_accessors` passes. - Did not read the full text of `CMakeLists.txt`, `Export.cpp`, `LegacyExports.cpp`, `RecoveredSignatures.hpp`, `InventoryExports.hpp`, `LegacyExports.hpp`, or `tests/ResourceAccessors.cpp`. - Console behavior and ICU data from real bundles were not verified. ## To get this to a good state Support valid table keys longer than 255 bytes, add coverage for a long key, and rerun the resource accessor test on the updated head.
MarcZX10 commented 2026-11-20 16:22:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T16:22:23Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

Changes are required before merge: preserve the caller’s bundle status on successful lookups and avoid reporting a missing resource when the key pointer is null.

What I ran

Reviewed head e4bb2d8cd252493d16ba5a9afb04aeab671caf75. I read the prepared description, commits, manifest, diff, and all included changed files; I also inspected the relevant ResourceBundle.cpp context and export declarations. No tests or build commands were run.

Results

Check Result Note
Diff and changed files passed Included files read
Build and tests not run No execution environment used

Findings

Blocking

  • core/libs/prx/libSceIcu/ResourceBundle.cpp:451 and core/libs/prx/libSceIcu/ResourceBundle.cpp:485: successful ures_getByKey and ures_getByIndex calls never write the caller’s status. ICU’s status convention requires successful calls to leave a pre-existing warning status unchanged; however, FillChild does not receive or update the status, and the tests only check success when status starts at zero. Confirmed other accessors preserve warning status by returning early only for positive errors, so a nonzero warning remains intact there.
  • core/libs/prx/libSceIcu/ResourceBundle.cpp:418: a null key is reported as U_MISSING_RESOURCE_ERROR, although it is an invalid argument. This makes invalid input indistinguishable from an absent table entry; return U_ILLEGAL_ARGUMENT_ERROR for null key.

Non-blocking

None.

Not verified

No build or tests were run. No runtime behavior on a physical console was verified. review/files.json was not available as a readable document; the reader’s file listing identified eight changed files, all marked included, and the manifest lists those same changes.

To get this to a good state

Fix the null-key status and add coverage for null keys and successful lookups with a warning status. Rerun the guest_icu_resource_accessors test on the updated head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5995886516 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/24288#pullrequestreview-5995886516). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T16:22:23Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested Changes are required before merge: preserve the caller’s bundle status on successful lookups and avoid reporting a missing resource when the key pointer is null. ## What I ran Reviewed head `e4bb2d8cd252493d16ba5a9afb04aeab671caf75`. I read the prepared description, commits, manifest, diff, and all included changed files; I also inspected the relevant `ResourceBundle.cpp` context and export declarations. No tests or build commands were run. ## Results | Check | Result | Note | |---|---|---| | Diff and changed files | passed | Included files read | | Build and tests | not run | No execution environment used | ## Findings ### Blocking - `core/libs/prx/libSceIcu/ResourceBundle.cpp:451` and `core/libs/prx/libSceIcu/ResourceBundle.cpp:485`: successful `ures_getByKey` and `ures_getByIndex` calls never write the caller’s status. ICU’s status convention requires successful calls to leave a pre-existing warning status unchanged; however, `FillChild` does not receive or update the status, and the tests only check success when status starts at zero. Confirmed other accessors preserve warning status by returning early only for positive errors, so a nonzero warning remains intact there. - `core/libs/prx/libSceIcu/ResourceBundle.cpp:418`: a null key is reported as `U_MISSING_RESOURCE_ERROR`, although it is an invalid argument. This makes invalid input indistinguishable from an absent table entry; return `U_ILLEGAL_ARGUMENT_ERROR` for null key. ### Non-blocking None. ## Not verified No build or tests were run. No runtime behavior on a physical console was verified. `review/files.json` was not available as a readable document; the reader’s file listing identified eight changed files, all marked included, and the manifest lists those same changes. ## To get this to a good state Fix the null-key status and add coverage for null keys and successful lookups with a warning status. Rerun the `guest_icu_resource_accessors` test on the updated head.

Pull request closed

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!24288
No description provided.