commit 2715c507b6c0d58cfa0208467e3b2370f02c7558 parent 3b32150f15cdda28f1827ef84cac1da98afbfa6f Author: anon <anon@example.com> Date: Tue, 13 Oct 2026 13:18:52 +0000 Translate pinned FFR resource manager and database method thunks Diffstat:
| M | docs/browser-porting.md | | | 12 | ++++++++++++ |
1 file changed, 12 insertions(+), 0 deletions(-)
diff --git a/docs/browser-porting.md b/docs/browser-porting.md @@ -1019,3 +1019,15 @@ the handle releases its locks. See [LockFile](https://learn.microsoft.com/en-us/ and [UnlockFile](https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-unlockfile). The browser runtime coordinates file handles within one client worker; these locks do not coordinate separate browser workers or native clients. + +FFR's resource-manager vtable at RVA `0xe510` and resource-database vtable +at `0xe540` contain six-byte `FF 25 <IAT address>` jump methods. The first +entries are native functions at `0x7860` and `0x7830`; the remaining entries +forward into PPR and HHR. In particular, RVA `0xd01e` jumps through IAT slot +`0xe3ec` to HHR's `ResourceDatabase_t::GetDbObject(const Identity_t&)`, +while `0xd024` forwards the overload taking a `DbObject_t*` through `0xe3e8`. +The runtime reaches the identity overload after database record I/O. These +local jump methods need translation even when their imported target functions +have already been translated. This mapping was checked against the pinned +FFR PE's raw code, IAT and `.rdata` pointers (SHA-256 +`ce23256643e4a7c04007409bbc1ab9c1818de7c2cb9d24bd58196e56ab436c38`).