Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spawn is a lie #52

Open
RHL120 opened this issue Dec 23, 2022 · 3 comments
Open

spawn is a lie #52

RHL120 opened this issue Dec 23, 2022 · 3 comments

Comments

@RHL120
Copy link
Contributor

RHL120 commented Dec 23, 2022

In r2pipe.rs line 176, the spawn function is described to be a function that returns a new R2PipeSpawn. This doc comment is a lie because on line 178 you will see a return R2Pipe::open(); which returns an R2PipeLang. The reason why I am complaining about this is because I am trying to remove the R2Pipe struct (because it is just a wrapper around Pipe and to get rid of the dyn). Doing that is hard when there is a method that returns two types. I propose erroring out when the arguments are empty.

@meme
Copy link
Collaborator

meme commented Dec 29, 2022

I think this makes sense - we can change the behaviour of spawn so that it cannot accept an existing session as the input, only arguments. Then, users who want to attach to existing sessions can use a separate API.

@gogo2464
Copy link

gogo2464 commented Jan 6, 2023

I can only agree with @RHL120 ! The error is so critical that my tutorial for my tool requires to use @RHL120 branch!!!

I did: r2pipe = { git = "https://github.com/RHL120/r2pipe.rs", branch = "windows_bad" }

https://github.com/gogo2464/cryptatools-rs/blob/master/TUTORIAL.md#31-caesar-statistical-analysis-try-when-the-shellcode-size-is-too-little

@RHL120
Copy link
Contributor Author

RHL120 commented Jan 8, 2023

rror is so critical that my tutorial for my tool requ

This issue is unrelated to the windows issue. The windows issue has been solved in the new release 0.7.0: 89db875

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants