mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-24 05:45:27 +00:00
Fix GraphEdge initialization in DisassemblerGraphView (#1436)
This commit is contained in:
parent
3e645980fc
commit
cdca7bdc3f
@ -249,13 +249,13 @@ void DisassemblerGraphView::loadCurrentGraph()
|
|||||||
db.false_path = RVA_INVALID;
|
db.false_path = RVA_INVALID;
|
||||||
if (block_fail) {
|
if (block_fail) {
|
||||||
db.false_path = block_fail;
|
db.false_path = block_fail;
|
||||||
gb.edges.push_back({block_fail});
|
gb.edges.emplace_back(block_fail);
|
||||||
}
|
}
|
||||||
if (block_jump) {
|
if (block_jump) {
|
||||||
if (block_fail) {
|
if (block_fail) {
|
||||||
db.true_path = block_jump;
|
db.true_path = block_jump;
|
||||||
}
|
}
|
||||||
gb.edges.push_back({block_jump});
|
gb.edges.emplace_back(block_jump);
|
||||||
}
|
}
|
||||||
|
|
||||||
QJsonObject switchOp = block["switchop"].toObject();
|
QJsonObject switchOp = block["switchop"].toObject();
|
||||||
@ -268,7 +268,7 @@ void DisassemblerGraphView::loadCurrentGraph()
|
|||||||
if (!ok) {
|
if (!ok) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
gb.edges.push_back({caseJump});
|
gb.edges.emplace_back(caseJump);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,6 +11,8 @@ public:
|
|||||||
struct GraphEdge {
|
struct GraphEdge {
|
||||||
ut64 target;
|
ut64 target;
|
||||||
QPolygonF polyline;
|
QPolygonF polyline;
|
||||||
|
|
||||||
|
explicit GraphEdge(ut64 target): target(target) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
struct GraphBlock {
|
struct GraphBlock {
|
||||||
|
Loading…
Reference in New Issue
Block a user