]> git.feebdaed.xyz Git - 0xmirror/radare2.git/commitdiff
Fix null deref in coredumping logic
authorpancake <pancake@nopcode.org>
Wed, 24 Dec 2025 10:10:36 +0000 (11:10 +0100)
committerpancake <pancake@nopcode.org>
Wed, 24 Dec 2025 11:02:51 +0000 (12:02 +0100)
libr/core/cmd_debug.inc.c

index 226d19e55477a437112e88fc1f0f77b2b0cdcac2..1052f7790b604e5e20c713eaf44240047e8c7d11 100644 (file)
@@ -4972,7 +4972,7 @@ static int cmd_debug_continue(RCore *core, const char *input) {
 }
 
 static char *get_corefile_name(const char *raw_name, int pid) {
-       return (!*raw_name)?
+       return R_STR_ISEMPTY (raw_name)?
                r_str_newf ("core.%u", pid) :
                r_str_trim_dup (raw_name);
 }