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

Fix #10719 line graph not correctly #10721

Merged
merged 1 commit into from Jul 13, 2018

Conversation

cyanpencil
Copy link
Contributor

@cyanpencil cyanpencil commented Jul 12, 2018

Closes #10719
Basically the fix was letting r2 set up duplicate edges AT FIRST,
then deleting them after r2 set up backedges.

Not allowing dup edges was interfering with backedges or edges drawing in general, in particular cases (where there was a backedge from a direct neighbour).

@@ -2125,6 +2125,23 @@ static void get_bbupdate(RAGraph *g, RCore *core, RAnalFunction *fcn) {
core->anal->stackptr = saved_stackptr;
}

static void delete_dup_edges (RAGraph *g) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This would probably slow down graphs a bit, but correctness is more important

Copy link
Contributor

Choose a reason for hiding this comment

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

Lets keep optimization for later then

@XVilka XVilka merged commit fdd4b30 into radareorg:master Jul 13, 2018
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

Successfully merging this pull request may close these issues.

Line graph not correctly
2 participants