]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdhf.c
Fix memory bounds error
[proxmark3-svn] / client / cmdhf.c
index 6aa5ae4e5e2d5809e9701ebaa5c447dcb9369baf..453635b75adb58e1bb19726214b1e79baf66b35d 100644 (file)
@@ -562,7 +562,7 @@ int CmdHFList(const char *Cmd)
        bool showWaitCycles = false;
        bool markCRCBytes = false;
        char type[40] = {0};
-       int tlen = param_getstr(Cmd,0,type);
+       int tlen = param_getstr(Cmd,0,type, sizeof(type));
        char param1 = param_getchar(Cmd, 1);
        char param2 = param_getchar(Cmd, 2);
        bool errors = false;
@@ -663,7 +663,7 @@ int CmdHFList(const char *Cmd)
 int CmdHFSearch(const char *Cmd){
        int ans = 0;
        PrintAndLog("");
-       ans = CmdHF14AReader("s");
+       ans = CmdHF14AInfo("s");
        if (ans > 0) {
                PrintAndLog("\nValid ISO14443A Tag Found - Quiting Search\n");
                return ans;
Impressum, Datenschutz