Pass string as argument and read
Aporate opened this issue · 3 comments
Aporate commented
Exactly how are you supposed to pass string as an argument and read it on the other end?
OpenByteDev commented
You can use the tests as reference:
For the injector consider payload::call_complex
in https://github.com/OpenByteDev/dll-syringe/blob/master/tests/rpc.rs
For the payload consider the sum(Vec<u64>)
from https://github.com/OpenByteDev/dll-syringe/blob/master/tests/helpers/test_payload/src/lib.rs
Aporate commented
And on another note, in release it doesn't seem to work.
Seems like optimizations may screw it over.
Using payload procedure macros.
tried setting opt-level = 1
, didn't work. Got a crash.
Set it to 0, then it worked.
OpenByteDev commented
Works for me in https://github.com/OpenByteDev/burnt-sushi. Could you share your project?