sanitize fix - lf/hf tune heap overflow

This commit is contained in:
iceman1001
2021-01-28 20:31:39 +01:00
parent 405b93f109
commit 6737f6f3cd
3 changed files with 21 additions and 20 deletions

View File

@@ -582,11 +582,10 @@ static int CmdTraceSave(const char *Cmd) {
if (g_traceLen == 0) {
download_trace();
}
if (g_traceLen == 0) {
PrintAndLogEx(WARNING, "trace is empty, nothing to save");
return PM3_SUCCESS;
if (g_traceLen == 0) {
PrintAndLogEx(WARNING, "trace is empty, nothing to save");
return PM3_SUCCESS;
}
}
saveFile(filename, ".trace", g_trace, g_traceLen);