CID 429545: Uninitialized pointer read

This commit is contained in:
wargio 2024-02-15 16:03:24 +08:00 committed by Anton Kochkov
parent 0e93e90df7
commit 50fedb2f77

View file

@ -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);