feat(libSceJsc): implement the WTF StringImpl and StringView search queries #18420

Merged
SHOnnay merged 1 commit from upstream-pr/18420 into main 2026-11-12 09:20:50 +00:00
SHOnnay commented 2026-11-11 13:46:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by SHOnnay on 2026-11-11T13:46:25Z.


What

Implements 20 libSceJsc exports that threw: WTF string search queries.

WTF::StringImpl (18):

  • startsWith(const*/&), startsWithIgnoringASCIICase(*/&)
  • endsWith(*/&), endsWithIgnoringASCIICase(*/&)
  • hasInfixStartingAt, hasInfixEndingAt
  • find(bool(*)(char16_t), unsigned), find(StringImpl*), find(StringImpl*, unsigned)
  • reverseFind(StringImpl*, unsigned)
  • the four findIgnoringASCIICase overloads

Others (2): WTF::StringView::contains(const char*) and WTF::protocolIs(StringView, const char*).

Source. Ported from pinned WebKit c55364d53f97: Source/WTF/wtf/text/StringImpl.{h,cpp}, StringCommon.h, StringView.{h,cpp} and Source/WTF/wtf/URL.cpp. Every parameter list matches its mangled name. The PS5-WebKit-11.x overloads take StringView and do not match.

Layout. src/WtfStringAbi.hpp models the 24-byte StringImpl (8-bit flag 1 << 2) and the 16-byte StringView with static asserts. This is the layout libSceNKWebKit's WtfStringAbi already uses.

Behaviour.

  • The find match function is called as a guest APS5_VABI function, as WtfLanguage.cpp does.
  • Null this, reference, function or C-string arguments throw where WebKit faults.

Files.

  • New: src/WtfStringSearch.cpp, src/WtfStringAbi.hpp, include/WtfStringSearchExports.hpp, tests/WtfStringSearch.cpp.
  • The test is registered like jsc_placement_new.
  • The stubs and placeholder declarations are removed.
  • In the debt file, the counts are lowered, 19 table rows removed, and a new entry records the unverified console WTF version and layout.

Left throwing:

  • WTF::Unicode::convert*: depends on version-specific ICU U8_NEXT semantics.
  • Anything that allocates a StringImpl.

Tested

macOS 27 on Apple M1. The new registered test is a full-build test and was not run: the full build does not run on macOS. A Linux or Windows run is needed.

Harness. A temporary host harness, not committed, built the unchanged WtfStringSearch.cpp with the test copied verbatim. It runs 140 hand-derived checks covering:

  • 8-bit, 16-bit and mixed widths
  • edge offsets
  • null-argument throws

All passed on x86-64 under Rosetta (ad-hoc signed) and on arm64.

Mutation check. All 5 hand mutations failed the harness on both architectures:

  • null-prefix startsWith semantics
  • the reverseFind empty-needle clamp
  • the protocolIs tab/newline skip
  • ASCII lowercase folding
  • the FindCommon start bound

A sixth mutation survived; it is behaviour-equivalent. It drops the Latin-1 check in the single-character find, which changes nothing because an 8-bit unit can never equal a character above 0xFF.

Syntax. clang++ -arch x86_64 -fsyntax-only passes on Export.cpp, LegacyExports.cpp, PlacementNew.cpp, GuestJscString.cpp, and the new source and test.

$ python3 tools/check_conventions.py --base upstream/main
All conventions checks passed.
$ python3 core/libs/tests/test_public_headers.py --audit-only
407 libraries, 34232 exports: unique declarations and umbrella coverage verified

Overlap. No open PR implements these exports.

  • gh pr list searches found only #15708 touching libSceJsc, with no hits for these names.
  • pr_overlap.py merged the 2 PRs sharing files cleanly.
  • It could not compare #14212, a docs-only reformat. Its changed lines name none of these exports, but a textual conflict in docs/dev/debt/libSceJsc.md is possible.

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
  • 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: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5260595186 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18420). Originally posted by [SHOnnay](https://github.com/SHOnnay) on 2026-11-11T13:46:25Z. --- ### What Implements 20 libSceJsc exports that threw: WTF string search queries. **`WTF::StringImpl` (18):** - `startsWith(const*/&)`, `startsWithIgnoringASCIICase(*/&)` - `endsWith(*/&)`, `endsWithIgnoringASCIICase(*/&)` - `hasInfixStartingAt`, `hasInfixEndingAt` - `find(bool(*)(char16_t), unsigned)`, `find(StringImpl*)`, `find(StringImpl*, unsigned)` - `reverseFind(StringImpl*, unsigned)` - the four `findIgnoringASCIICase` overloads **Others (2):** `WTF::StringView::contains(const char*)` and `WTF::protocolIs(StringView, const char*)`. **Source.** Ported from pinned WebKit [`c55364d53f97`](https://github.com/WebKit/WebKit/tree/c55364d53f971f63a709976f168d932d558b8909): `Source/WTF/wtf/text/StringImpl.{h,cpp}`, `StringCommon.h`, `StringView.{h,cpp}` and `Source/WTF/wtf/URL.cpp`. Every parameter list matches its mangled name. The PS5-WebKit-11.x overloads take `StringView` and do not match. **Layout.** `src/WtfStringAbi.hpp` models the 24-byte `StringImpl` (8-bit flag `1 << 2`) and the 16-byte `StringView` with static asserts. This is the layout libSceNKWebKit's `WtfStringAbi` already uses. **Behaviour.** - The `find` match function is called as a guest `APS5_VABI` function, as `WtfLanguage.cpp` does. - Null `this`, reference, function or C-string arguments throw where WebKit faults. **Files.** - New: `src/WtfStringSearch.cpp`, `src/WtfStringAbi.hpp`, `include/WtfStringSearchExports.hpp`, `tests/WtfStringSearch.cpp`. - The test is registered like `jsc_placement_new`. - The stubs and placeholder declarations are removed. - In the debt file, the counts are lowered, 19 table rows removed, and a new entry records the unverified console WTF version and layout. **Left throwing:** - `WTF::Unicode::convert*`: depends on version-specific ICU `U8_NEXT` semantics. - Anything that allocates a `StringImpl`. ### Tested macOS 27 on Apple M1. The new registered test is a full-build test and was **not run**: the full build does not run on macOS. A Linux or Windows run is needed. **Harness.** A temporary host harness, not committed, built the unchanged `WtfStringSearch.cpp` with the test copied verbatim. It runs 140 hand-derived checks covering: - 8-bit, 16-bit and mixed widths - edge offsets - null-argument throws All passed on x86-64 under Rosetta (ad-hoc signed) and on arm64. **Mutation check.** All 5 hand mutations failed the harness on both architectures: - null-prefix `startsWith` semantics - the `reverseFind` empty-needle clamp - the `protocolIs` tab/newline skip - ASCII lowercase folding - the `FindCommon` start bound A sixth mutation survived; it is behaviour-equivalent. It drops the Latin-1 check in the single-character find, which changes nothing because an 8-bit unit can never equal a character above 0xFF. **Syntax.** `clang++ -arch x86_64 -fsyntax-only` passes on `Export.cpp`, `LegacyExports.cpp`, `PlacementNew.cpp`, `GuestJscString.cpp`, and the new source and test. ```text $ python3 tools/check_conventions.py --base upstream/main All conventions checks passed. $ python3 core/libs/tests/test_public_headers.py --audit-only 407 libraries, 34232 exports: unique declarations and umbrella coverage verified ``` **Overlap.** No open PR implements these exports. - `gh pr list` searches found only #15708 touching libSceJsc, with no hits for these names. - `pr_overlap.py` merged the 2 PRs sharing files cleanly. - It could not compare #14212, a docs-only reformat. Its changed lines name none of these exports, but a textual conflict in `docs/dev/debt/libSceJsc.md` is possible. ### 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) - [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 --> none - [x] Fixes: <!-- issue it closes as Fixes #N, or none --> none - [x] Unblocks: <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> none - [x] GPUs tested: <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> n/a - [x] AI-assisted: <!-- yes / no --> yes (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
PrivacyOnion commented 2026-11-11 16:04:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-11T16:04:23Z.

Review: CHANGES_REQUESTED


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

  • Conventions: tools/check_conventions.py passed; git diff --check clean.
  • Build: jsc_wtf_string_search_tests built cleanly.
  • CTest (jsc_wtf_string_search):
    1/1 Test #3235: jsc_wtf_string_search ............   Passed    0.04 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceJsc/Export.cpp, core/libs/prx/libSceJsc/include/Api.hpp, core/libs/prx/libSceJsc/include/InventoryExports.hpp, core/libs/prx/libSceJsc/libSceJsc.hpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified struct layouts, alignments, and field offsets in core/libs/prx/libSceJsc/src/WtfStringAbi.hpp for StringImpl (24 bytes, 8-byte alignment) and StringView (16 bytes) against 64-bit LP64 and LLP64 calling conventions.
    • Verified bounds checks and offset arithmetic in _ZNK3WTF10StringImpl18hasInfixStartingAtERKS0_j and _ZNK3WTF10StringImpl16hasInfixEndingAtERKS0_j in core/libs/prx/libSceJsc/src/WtfStringSearch.cpp to prevent unsigned arithmetic underflow when endOffset < infix.length.
    • Verified guest callback dispatching in _ZN3WTF10StringImpl4findEPFbDsEj in core/libs/prx/libSceJsc/src/WtfStringSearch.cpp, ensuring matchFunction is invoked with char16_t code units under APS5_VABI and validates nullptr.
    • Verified reverse search loop termination and underflow guards in _ZN3WTF10StringImpl11reverseFindEPS0_j and ReverseFindCharacter across 8-bit, 16-bit, and mixed string widths.
    • Verified export symbol declarations in core/libs/prx/libSceJsc/include/WtfStringSearchExports.hpp and CMake test wiring in core/libs/prx/libSceJsc/CMakeLists.txt.
  • Concerns:
    • core/libs/prx/libSceJsc/src/WtfStringSearch.cpp:254: In ZNK3WTF10StringImpl10startsWithEPKS0, the function returns !prefix || StartsWith(...), which evaluates to true when prefix == nullptr. In WebKit (StringImpl.h), startsWith(const StringImpl* prefix) returns prefix && startsWith(*prefix) (returning false when prefix is null), consistent with startsWithIgnoringASCIICaseEPKS0_ and endsWithEPS0_. Furthermore, tests/WtfStringSearch.cpp:68 codifies this inverted logic by asserting Check(_ZNK3WTF10StringImpl10startsWithEPKS0_(&hello, nullptr), __LINE__).
    • core/libs/prx/libSceJsc/src/WtfStringSearch.cpp:245: IsASCIIAlphaCaselessEqual returns static_cast<int>(codeUnit | 0x20) == static_cast<int>(expected). Because bit 5 (0x20) is unconditionally set on codeUnit while expected is unmasked, any uppercase ASCII letter in expected ('A'-'Z', values 0x41 to 0x5A) has bit 5 clear and can never match, causing protocolIs to fail for protocols containing uppercase characters (e.g. 'HTTP'). Additionally, non-alpha characters with bit 5 clear (e.g. '@' 0x40) will spuriously match punctuation with bit 5 set (e.g. '`' 0x60). Both operands must be validated as ASCII alpha and folded.
    • core/libs/prx/libSceJsc/src/WtfStringSearch.cpp:190: In FindCommon, the check if (start > haystack.length) return NotFound; precedes if (!needle.length) return start;. When searching for an empty needle (needle.length == 0) with start > haystack.length, WebKit's StringImpl::find returns std::min(start, length()) (clamped to haystack.length). FindCommon instead returns NotFound, contradicting WebKit semantics as well as FindIgnoringASCIICase (line 203) and ReverseFind (line 225) which correctly clamp empty needles. Unit test tests/WtfStringSearch.cpp:188 asserts this incorrect failure.
    • core/libs/prx/libSceJsc/src/WtfStringSearch.cpp:353: In _ZN3WTF10protocolIsENS_10StringViewEPKc, the null check if (!protocol) throw std::invalid_argument(__func__); is located inside the loop after skipping leading whitespace. If string is empty or composed exclusively of whitespace characters (<= ' '), the loop finishes without executing line 353 and returns false, bypassing the required null check on protocol. The null check must occur at function entry before parsing string, and tests/WtfStringSearch.cpp:310 improperly asserts that protocolIs(View(\" \"), nullptr) returns false without throwing.
    • core/libs/prx/libSceJsc/src/WtfStringSearch.cpp:1-99: The file contains 99 lines of license and attribution block comments. AGENTS.md strictly mandates: 'No comments in code, except #endif and namespace ends.' Comments in implementation code outside 3rdparty submodules are forbidden.
  • Minor: please drop the Generated with footer from the description; the AI-assisted checkbox can stay.

Requesting changes for the points above.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5861661797 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18420#pullrequestreview-5861661797). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-11T16:04:23Z. **Review:** CHANGES_REQUESTED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `8f3c62b483`: - **Conventions**: `tools/check_conventions.py` passed; `git diff --check` clean. - **Build**: `jsc_wtf_string_search_tests` built cleanly. - **CTest** (`jsc_wtf_string_search`): ``` 1/1 Test #3235: jsc_wtf_string_search ............ Passed 0.04 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceJsc/Export.cpp`, `core/libs/prx/libSceJsc/include/Api.hpp`, `core/libs/prx/libSceJsc/include/InventoryExports.hpp`, `core/libs/prx/libSceJsc/libSceJsc.hpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified struct layouts, alignments, and field offsets in core/libs/prx/libSceJsc/src/WtfStringAbi.hpp for StringImpl (24 bytes, 8-byte alignment) and StringView (16 bytes) against 64-bit LP64 and LLP64 calling conventions. - Verified bounds checks and offset arithmetic in _ZNK3WTF10StringImpl18hasInfixStartingAtERKS0_j and _ZNK3WTF10StringImpl16hasInfixEndingAtERKS0_j in core/libs/prx/libSceJsc/src/WtfStringSearch.cpp to prevent unsigned arithmetic underflow when endOffset < infix.length. - Verified guest callback dispatching in _ZN3WTF10StringImpl4findEPFbDsEj in core/libs/prx/libSceJsc/src/WtfStringSearch.cpp, ensuring matchFunction is invoked with char16_t code units under APS5_VABI and validates nullptr. - Verified reverse search loop termination and underflow guards in _ZN3WTF10StringImpl11reverseFindEPS0_j and ReverseFindCharacter across 8-bit, 16-bit, and mixed string widths. - Verified export symbol declarations in core/libs/prx/libSceJsc/include/WtfStringSearchExports.hpp and CMake test wiring in core/libs/prx/libSceJsc/CMakeLists.txt. - **Concerns**: - core/libs/prx/libSceJsc/src/WtfStringSearch.cpp:254: In _ZNK3WTF10StringImpl10startsWithEPKS0_, the function returns `!prefix || StartsWith(...)`, which evaluates to `true` when `prefix == nullptr`. In WebKit (StringImpl.h), `startsWith(const StringImpl* prefix)` returns `prefix && startsWith(*prefix)` (returning `false` when `prefix` is null), consistent with `startsWithIgnoringASCIICaseEPKS0_` and `endsWithEPS0_`. Furthermore, tests/WtfStringSearch.cpp:68 codifies this inverted logic by asserting `Check(_ZNK3WTF10StringImpl10startsWithEPKS0_(&hello, nullptr), __LINE__)`. - core/libs/prx/libSceJsc/src/WtfStringSearch.cpp:245: `IsASCIIAlphaCaselessEqual` returns `static_cast<int>(codeUnit | 0x20) == static_cast<int>(expected)`. Because bit 5 (0x20) is unconditionally set on `codeUnit` while `expected` is unmasked, any uppercase ASCII letter in `expected` ('A'-'Z', values 0x41 to 0x5A) has bit 5 clear and can never match, causing `protocolIs` to fail for protocols containing uppercase characters (e.g. 'HTTP'). Additionally, non-alpha characters with bit 5 clear (e.g. '@' 0x40) will spuriously match punctuation with bit 5 set (e.g. '`' 0x60). Both operands must be validated as ASCII alpha and folded. - core/libs/prx/libSceJsc/src/WtfStringSearch.cpp:190: In `FindCommon`, the check `if (start > haystack.length) return NotFound;` precedes `if (!needle.length) return start;`. When searching for an empty needle (`needle.length == 0`) with `start > haystack.length`, WebKit's `StringImpl::find` returns `std::min(start, length())` (clamped to `haystack.length`). `FindCommon` instead returns `NotFound`, contradicting WebKit semantics as well as `FindIgnoringASCIICase` (line 203) and `ReverseFind` (line 225) which correctly clamp empty needles. Unit test tests/WtfStringSearch.cpp:188 asserts this incorrect failure. - core/libs/prx/libSceJsc/src/WtfStringSearch.cpp:353: In `_ZN3WTF10protocolIsENS_10StringViewEPKc`, the null check `if (!protocol) throw std::invalid_argument(__func__);` is located inside the loop after skipping leading whitespace. If `string` is empty or composed exclusively of whitespace characters (`<= ' '`), the loop finishes without executing line 353 and returns `false`, bypassing the required null check on `protocol`. The null check must occur at function entry before parsing `string`, and tests/WtfStringSearch.cpp:310 improperly asserts that `protocolIs(View(\" \"), nullptr)` returns `false` without throwing. - core/libs/prx/libSceJsc/src/WtfStringSearch.cpp:1-99: The file contains 99 lines of license and attribution block comments. AGENTS.md strictly mandates: 'No comments in code, except #endif and namespace ends.' Comments in implementation code outside 3rdparty submodules are forbidden. - Minor: please drop the `Generated with` footer from the description; the AI-assisted checkbox can stay. Requesting changes for the points above.
PrivacyOnion commented 2026-11-11 18:36:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-11T18:36:21Z.

Review: APPROVED


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

  • Conventions: tools/check_conventions.py passed; git diff --check clean.
  • Build: jsc_wtf_string_search_tests built cleanly.
  • CTest (jsc_wtf_string_search):
    1/1 Test #3235: jsc_wtf_string_search ............   Passed    0.02 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceJsc/Export.cpp, core/libs/prx/libSceJsc/include/Api.hpp, core/libs/prx/libSceJsc/include/InventoryExports.hpp, core/libs/prx/libSceJsc/libSceJsc.hpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • Verified pointer null-safety and exception behavior across all 20 exports in core/libs/prx/libSceJsc/src/WtfStringSearch.cpp, confirming that reference, StringView, and CodeUnitMatchFunction parameters throw std::invalid_argument via Require() on null input while pointer overloads return NotFound, false, or !prefix matching WebKit semantics.
    • Verified bounds checks and offset arithmetic in FindCommon, FindIgnoringASCIICase, ReverseFind, and HasInfixAt in core/libs/prx/libSceJsc/src/WtfStringSearch.cpp, ensuring start > length, match.length > searchLength, and delta unsigned arithmetic are free from underflow and out-of-bounds reads.
    • Verified 8-bit, 16-bit, and mixed-width character traversal in Visit, EqualUnits, EqualUnitsIgnoringASCIICase, FindCharacter, and ReverseFindCharacter, ensuring proper unsigned promotion without sign extension and accurate ASCII case-folding.
    • Verified WTF::protocolIs in core/libs/prx/libSceJsc/src/WtfStringSearch.cpp:347-362 against WebKit URL.cpp, ensuring leading whitespace and internal tab/newline/carriage return characters are skipped properly and scheme termination at ':' is enforced.
    • Verified ABI layout and static asserts in core/libs/prx/libSceJsc/src/WtfStringAbi.hpp for 24-byte StringImpl and 16-byte trivially copyable StringView across both LP64 Linux and LLP64 Windows targets.
    • Verified build definitions and test coverage in CMakeLists.txt and tests/WtfStringSearch.cpp, as well as export inventory removals and technical debt recording in docs/dev/debt/libSceJsc.md in accordance with AGENTS.md.
  • Minor: please drop the Generated with footer from the description; the AI-assisted checkbox can stay.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5863699298 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18420#pullrequestreview-5863699298). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-11T18:36:21Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `8f3c62b483`: - **Conventions**: `tools/check_conventions.py` passed; `git diff --check` clean. - **Build**: `jsc_wtf_string_search_tests` built cleanly. - **CTest** (`jsc_wtf_string_search`): ``` 1/1 Test #3235: jsc_wtf_string_search ............ Passed 0.02 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceJsc/Export.cpp`, `core/libs/prx/libSceJsc/include/Api.hpp`, `core/libs/prx/libSceJsc/include/InventoryExports.hpp`, `core/libs/prx/libSceJsc/libSceJsc.hpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - Verified pointer null-safety and exception behavior across all 20 exports in core/libs/prx/libSceJsc/src/WtfStringSearch.cpp, confirming that reference, StringView, and CodeUnitMatchFunction parameters throw std::invalid_argument via Require() on null input while pointer overloads return NotFound, false, or !prefix matching WebKit semantics. - Verified bounds checks and offset arithmetic in FindCommon, FindIgnoringASCIICase, ReverseFind, and HasInfixAt in core/libs/prx/libSceJsc/src/WtfStringSearch.cpp, ensuring start > length, match.length > searchLength, and delta unsigned arithmetic are free from underflow and out-of-bounds reads. - Verified 8-bit, 16-bit, and mixed-width character traversal in Visit, EqualUnits, EqualUnitsIgnoringASCIICase, FindCharacter, and ReverseFindCharacter, ensuring proper unsigned promotion without sign extension and accurate ASCII case-folding. - Verified WTF::protocolIs in core/libs/prx/libSceJsc/src/WtfStringSearch.cpp:347-362 against WebKit URL.cpp, ensuring leading whitespace and internal tab/newline/carriage return characters are skipped properly and scheme termination at ':' is enforced. - Verified ABI layout and static asserts in core/libs/prx/libSceJsc/src/WtfStringAbi.hpp for 24-byte StringImpl and 16-byte trivially copyable StringView across both LP64 Linux and LLP64 Windows targets. - Verified build definitions and test coverage in CMakeLists.txt and tests/WtfStringSearch.cpp, as well as export inventory removals and technical debt recording in docs/dev/debt/libSceJsc.md in accordance with AGENTS.md. - Minor: please drop the `Generated with` footer from the description; the AI-assisted checkbox can stay. Looks Good To Me
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!18420
No description provided.