From 39f83cf213e99e5b7c6c517268be2a3454991407 Mon Sep 17 00:00:00 2001 From: pancake Date: Sat, 25 Sep 2021 11:43:52 +0200 Subject: [PATCH] Fix null deref when using anal.a2f ##anal --- libr/anal/block.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libr/anal/block.c b/libr/anal/block.c index 39749b19a6..82a91f2f73 100644 --- a/libr/anal/block.c +++ b/libr/anal/block.c @@ -490,6 +490,9 @@ typedef struct { R_API bool r_anal_block_recurse_depth_first(RAnalBlock *block, RAnalBlockCb cb, R_NULLABLE RAnalBlockCb on_exit, void *user) { bool breaked = false; + if (!block) { + return false; + } HtUP *visited = ht_up_new0 (); if (!visited) { goto beach;