frida-il2cpp-bridge icon indicating copy to clipboard operation
frida-il2cpp-bridge copied to clipboard

Error: access violation accessing when overriding implementation

Open UnknownAPI opened this issue 3 months ago • 2 comments

I updated il2cpp-bridge after using an older version for a while. I get

Error: access violation accessing 0xb4000086
    at <anonymous> (/node_modules/frida-il2cpp-bridge/dist/index.js:1880)
    at map (native)
    at get generics (/node_modules/frida-il2cpp-bridge/dist/index.js:1880)
    at call (native)
    at <anonymous> (/node_modules/frida-il2cpp-bridge/dist/index.js:984)
    at <anonymous> (/node_modules/frida-il2cpp-bridge/dist/index.js:3536)
    at _ (/node_modules/frida-il2cpp-bridge/dist/index.js:3505)
    at get Enum (/node_modules/frida-il2cpp-bridge/dist/index.js:3536)
    at call (native)
    at <anonymous> (/node_modules/frida-il2cpp-bridge/dist/index.js:984)
    at read (/node_modules/frida-il2cpp-bridge/dist/index.js:1168)
    at get value (/node_modules/frida-il2cpp-bridge/dist/index.js:2315)
    at get virtualAddress (/node_modules/frida-il2cpp-bridge/dist/index.js:2649)
    at set implementation (/node_modules/frida-il2cpp-bridge/dist/index.js:2687)
    at <anonymous> (ssl.ts:6)
    at perform (/node_modules/frida-il2cpp-bridge/dist/index.js:1360)

when overriding a method implementation. Note that the script in question used to run perfectly in the older version.

the snippet causing the issue is this

  const PinCert = PinnedTlsAuth.method("PinCert");
  PinCert.implementation = function (...parameters: Il2Cpp.Parameter.Type[]) {
    return;
  };

UnknownAPI avatar Sep 11 '25 14:09 UnknownAPI

After updating frida to 17.2.17 it runs fine. Unsure if dropping support for older frida version was intended but there goes a fix for people that face the same issue

UnknownAPI avatar Sep 11 '25 14:09 UnknownAPI

@UnknownAPI Works also for me w/ frida 17.2.17. Also, do not forget to update the frida tool locally.

pip install --upgrade frida

So the versions are consistents.

Ge0 avatar Sep 14 '25 19:09 Ge0