]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdhf.c
Fix memory bounds error
[proxmark3-svn] / client / cmdhf.c
index 168296baf0d5e3bb1a30a3cc96211e3366f3e6c8..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;
Impressum, Datenschutz