CID 429545: Uninitialized pointer read
This commit is contained in:
parent
0e93e90df7
commit
50fedb2f77
1 changed files with 2 additions and 2 deletions
|
|
@ -495,14 +495,14 @@ typedef struct {
|
|||
|
||||
RZ_API bool rz_analysis_block_recurse_depth_first(RzAnalysisBlock *block, RzAnalysisBlockCb cb, RZ_NULLABLE RzAnalysisBlockCb on_exit, void *user) {
|
||||
rz_return_val_if_fail(block && cb, true);
|
||||
RzVector path;
|
||||
bool breaked = false;
|
||||
HtUP *visited = ht_up_new0();
|
||||
rz_vector_init(&path, sizeof(RecurseDepthFirstCtx), NULL, NULL);
|
||||
if (!visited) {
|
||||
goto beach;
|
||||
}
|
||||
RzAnalysis *analysis = block->analysis;
|
||||
RzVector path;
|
||||
rz_vector_init(&path, sizeof(RecurseDepthFirstCtx), NULL, NULL);
|
||||
RzAnalysisBlock *cur_bb = block;
|
||||
RecurseDepthFirstCtx ctx = { cur_bb, NULL };
|
||||
rz_vector_push(&path, &ctx);
|
||||
|
|
|
|||
Loading…
Reference in a new issue