sanitize fix - lf/hf tune heap overflow

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

No files matched your search

+4 -5
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);