mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-12-05 00:50:52 +00:00
* feat(libSceNKWebKit): implement the WebCore SQLite wrappers * test(libSceNKWebKit): cover tableExists with quoted and injected table names * fix(libSceNKWebKit): bind the table name in SQLiteDatabase::tableExists * fix(libSceNKWebKit): rename the SQLite open helper that clashes with WKImeEventType * test(libSceNKWebKit): drop the NotImplemented checks from the WebCore SQLite test
7.5 KiB
7.5 KiB
libSceNKWebKit
add Functional
- WebCore::SQLiteDatabase and SQLiteTransaction (libSceNKWebKit) - not compared with a console module: the device's WebKit revision is unverified. The exports carry 3.20 signatures (
open(const String&, OpenMode),executeCommand(const String&),tableExists(const String&)) that the pinned 11.x tree no longer has, so they follow August 2020 SQLiteDatabase.cpp and SQLiteTransaction.cpp. They call the libSceNKWebKitRequirements SQLite exports. Closes when: compared with a console module. - WebCore::SQLiteDatabase::tableExists (libSceNKWebKit) - not compared with a console module. It binds the name, as the pinned 11.x tableSQL does; August 2020 tableExists concatenates it, so the two differ for a name holding a single quote. It binds and reads UTF-16 through the 3.20 statement, where 11.x SQLiteStatement.cpp uses UTF-8. Closes when: compared with a console module.
- WebCore::SQLiteStatement and SQLiteStatementAutoResetScope (libSceNKWebKit) - not compared with a console module. The 3.20
SQLiteStatement(SQLiteDatabase&, const String&),prepare,finalizeandgetColumn*exports, which the pinned 11.x tree replaced withSQLiteDatabase::prepareStatement, follow August 2020 SQLiteStatement.cpp and SQLiteStatementAutoResetScope.cpp. Closes when: compared with a console module. - WebCore SQLite object layouts (libSceNKWebKit) - release layouts of August 2020 SQLiteDatabase.h (64 bytes,
WTF::Lockbytes at 14, 24 and 40,m_lastChangesCountat 56) and SQLiteStatement.h (24 bytes);SQLiteTransactionis 16 bytes. The pinned 11.x layout differs: it derives fromCanMakeWeakPtrand dropsm_lastChangesCount. None of the 55 SQLite names that only the pin declares, such as itsopen(lCTp1S9tQ5Q) andprepareStatement, is in the inventory. Closes when: measured on a PS5. - WebCore SQLite wrappers (libSceNKWebKit) - these inputs throw through
NotImplemented_nid_no_patch:isColumnDeclaredAsBlobfor a column without a declared type, where WebKit passes the nullsqlite3_column_decltyperesult tostrlen, or for SQL thatprepareleaves without a statement;runIncrementalVacuumCommandandsetCollationFunctionon a closed database, which SQLite built without API armor dereferences and the console SQLite build is unknown;bindValueon a valuelessWTF::Variant; a collation call through an emptyWTF::Function. Closes when: measured on a PS5. - WebCore SQLite wrappers (libSceNKWebKit) -
WTF::Lockcontention yields until the byte is free instead of parking onWTF::ParkingLot, whose exports still throw.openleavesm_openingThreadnull becauseWTF::Thread::currentis not implemented; release builds read it only in assertions.m_authorizerstays null becausesetAuthorizeris not exported. SQLite results are those of the bundled SQLite 3.54.1. Closes when: WTF::ParkingLot and WTF::Thread are implemented.