feat(libSceNKWebKit): implement SQLiteFileSystem::computeHashForFileName #23575

Closed
noisyweather wants to merge 1 commit from upstream-pr/23575 into main
noisyweather commented 2026-11-19 09:07:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by noisyweather on 2026-11-19T09:07:37Z.


The export takes a const String&, which matches WebKit 73a35b43 rather
than the 11.x StringView overload. Follow that revision: hash the
lenient UTF-8 form of the name with the PAL::CryptoDigest SHA-256
export and return the digest as 64 uppercase hex digits through
String::fromUTF8. A null String hashes as empty input; a null reference
throws.

Co-Authored-By: Claude Opus 5.5 [email protected]

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5391982349 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23575). Originally posted by [noisyweather](https://github.com/noisyweather) on 2026-11-19T09:07:37Z. --- The export takes a const String&, which matches WebKit 73a35b43 rather than the 11.x StringView overload. Follow that revision: hash the lenient UTF-8 form of the name with the PAL::CryptoDigest SHA-256 export and return the digest as 64 uppercase hex digits through String::fromUTF8. A null String hashes as empty input; a null reference throws. Co-Authored-By: Claude Opus 5.5 <[email protected]>
PrivacyOnion commented 2026-11-19 09:09:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-19T09:09:56Z.

Review: CHANGES_REQUESTED


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

  • Conventions: tools/check_conventions.py failed.
    (pull request): error: [pr-template] Fill in the pull request template: add the '### What' heading of the template
    (pull request): error: [pr-template] Fill in the pull request template: add the '### Tested' heading of the template
    (pull request): error: [pr-template] Fill in the pull request template: add the '### Checklist' heading of the template
    3 findings, 3 errors; GitHub shows at most 10 error annotations, the job summary lists all
    
  • Build: nkwebkit_sqlitefilesystem_tests built cleanly.
  • CTest (nkwebkit_sqlitefilesystem):
    1/1 Test #4640: nkwebkit_sqlitefilesystem ........   Passed    0.02 sec
    100% tests passed, 0 tests failed out of 1
    

Requesting changes for the points above.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5972166265 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/23575#pullrequestreview-5972166265). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-19T09:09:56Z. **Review:** CHANGES_REQUESTED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `d2055e8a2c`: - **Conventions**: `tools/check_conventions.py` failed. ``` (pull request): error: [pr-template] Fill in the pull request template: add the '### What' heading of the template (pull request): error: [pr-template] Fill in the pull request template: add the '### Tested' heading of the template (pull request): error: [pr-template] Fill in the pull request template: add the '### Checklist' heading of the template 3 findings, 3 errors; GitHub shows at most 10 error annotations, the job summary lists all ``` - **Build**: `nkwebkit_sqlitefilesystem_tests` built cleanly. - **CTest** (`nkwebkit_sqlitefilesystem`): ``` 1/1 Test #4640: nkwebkit_sqlitefilesystem ........ Passed 0.02 sec 100% tests passed, 0 tests failed out of 1 ``` Requesting changes for the points above.

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