feat(libSceNKWebKit): validate UUIDs and default URL ports #13766
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/13766"
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 hyvvs on 2026-10-31T05:05:42Z.
What
Implement two previously throwing
libSceNKWebKitexports using Sony's public PS5 WebKit 11.x source:WTF::isVersion4UUID(WTF::StringView)— parse the 36-byte hex UUID and check version 4 and RFC 4122 variant.WTF::isDefaultPortForProtocol(uint16_t, WTF::StringView)— classify the five lowercase source-default schemesftp,http,https,ws,wss.Restore the verified 16-byte release
WTF::StringViewby-value guest ABI (pointer at +0, 32-bit length at +8, 8-bit flag at +12), add a focused guest test, and update technical debt. This source-guided implementation is not PS5-hardware-measured, and it does not implement the separate testing-only port override registration exports.Primary references: WTF UUID.cpp, WTF URL.cpp, URLParser.cpp, and StringView.h.
Scanner: 7,229/27,404 to 7,231/27,404 (+2).
Tested
python -m unittest discover -s tools/tests -p 'test_progress*.py' -q: 96 tests OK (2 skipped).python tools/tests/test_progress.py: 56 tests OK (independent run).python core/libs/tests/test_public_headers.py --audit-only: 393 libraries, 24,536 exports validated.python tools/check_conventions.py --base upstream/main: passed.Export.cppC++20 object compile: passed.Checklist
Open #13500 changes shared NKWebKit inventory files and CMake: an exploratory
git merge-treereports merge conflicts (without an overlapping export implementation). Reconcile on whichever lands later.Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-31T06:23:52Z.
Review: COMMENTED
Linux run of head
f196994bb5, merged (--no-commit) ontomain6a691f69ee. Ubuntu 26.04 (kernel 7.0), GCC 15.2.0, CMake 4.2.3, Ninja, Release,BUILD_TESTING=ON, i7-8700. The description only lists a standalone MinGW executable, so this is the first CMake/CTest run on Linux.guest_nkwebkit_urls: passes 3/3.nkwebkit: 3/3.public_headers: 65/65.isVersion4UUIDandisDefaultPortForProtocol(a stand-in for themainstubs) makesguest_nkwebkit_urlsabort 3/3.guest_nkwebkit_urlsandguest_nkwebkit_url_protocolspass 3/3.Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.