huan / sidecar

Easily hook/call binary functions using ES6 class with TypeScript annotation (Powered by Frida)
https://npmjs.com/package/sidecar
Apache License 2.0
47 stars 7 forks source link

Try to fix CI #30

Open huan opened 2 years ago

huan commented 2 years ago
$ ./tests/library-sidecar.spec.ts 
libFile:libfactorial-x64.so
spawnTarget:/bin/sleep,10
00:12:10 ERR Sidecar guardRetType() NativeType(uint64) does match the design type "undefined"
file:///home/huan/git/huan/sidecar/src/decorators/ret-type/guard-ret-type.ts:43
    throw new Error([
          ^
Error: The FactorialSidecar.factorial()
decorated by "@RetType(uint64, ...)"
does match the design return type "void"
    at guardRetType (file:///home/huan/git/huan/sidecar/src/decorators/ret-type/guard-ret-type.ts:43:11)
    at retTypeMethodDecorator (file:///home/huan/git/huan/sidecar/src/decorators/ret-type/ret-type.ts:41:5)
    at file:///home/huan/git/huan/sidecar/examples/dynamic-library/factorial-sidecar.ts:12:28

Upgraded Frida:

However, the CI is still failing with some decorator unit tests.

Need to be investigated.