mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-09 15:52:33 +00:00
core/graph: fix SEGFAULT on some "complex" functions
This commit is contained in:
parent
8f34d0cf83
commit
d47216b349
@ -552,7 +552,7 @@ static void create_layers (RAGraph *g) {
|
||||
//FIXME how to handle properly this error ret2libc?
|
||||
continue;
|
||||
}
|
||||
g->layers[i].nodes = R_NEWS (RGraphNode *,
|
||||
g->layers[i].nodes = R_NEWS0 (RGraphNode *,
|
||||
1 + g->layers[i].n_nodes);
|
||||
g->layers[i].position = 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user