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

Separate Relocs Setting and Printing #938

Merged
merged 4 commits into from
Apr 2, 2021
Merged

Separate Relocs Setting and Printing #938

merged 4 commits into from
Apr 2, 2021

Conversation

thestr4ng3r
Copy link
Member

@thestr4ng3r thestr4ng3r commented Mar 30, 2021

Follow-up to #880, #775, #742

@github-actions github-actions bot added the RzBin label Apr 1, 2021
@thestr4ng3r thestr4ng3r marked this pull request as ready for review April 1, 2021 11:40
char *mn = rz_bin_demangle(r->bin->cur, NULL, name, addr, keep_lib);
if (mn) {
RBNode *relocs = NULL;
if (r->bin->cur && r->bin->cur->o) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if possible without too much hassle, please extract all the inner code in a separate function because having such a long if is painful for my eyes :D

Copy link
Member

@wargio wargio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same request as by ret2libc. split that huge if into a function, where possible.

@thestr4ng3r
Copy link
Member Author

split now

@thestr4ng3r thestr4ng3r requested a review from wargio April 2, 2021 12:22
@thestr4ng3r thestr4ng3r merged commit 890c4bf into dev Apr 2, 2021
@thestr4ng3r thestr4ng3r deleted the apply-relocs branch April 2, 2021 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants