From 35da3707d33dbdf7c3314f49b23aeb5344f888ac Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 15 Mar 2019 22:07:21 +0100 Subject: [PATCH] fix: 'hf iclass decrypt' - use after free --- client/cmdhficlass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/cmdhficlass.c b/client/cmdhficlass.c index ad0f510a7..4fd8b5b1f 100644 --- a/client/cmdhficlass.c +++ b/client/cmdhficlass.c @@ -784,8 +784,8 @@ int CmdHFiClassDecrypt(const char *Cmd) { } saveFile(outfilename, "bin", decrypted, fsize); - free(decrypted); printIclassDumpContents(decrypted, 1, (fsize / 8), fsize); + free(decrypted); return 0; }