]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdhfmfu.c
FIX: Coverity, out-of-bounds read ...
[proxmark3-svn] / client / cmdhfmfu.c
index c7de6c7dc62a9771d1abe261b62ca3697b78d6c6..cc2e05d6b45c303790e8bef4ca619aa746bd74a9 100644 (file)
@@ -1681,7 +1681,7 @@ int CmdHF14AMfucAuth(const char *Cmd){
        //Change key to user defined one
        if (cmdp == 'k' || cmdp == 'K'){
                keyNo = param_get8(Cmd, 1);
-               if(keyNo > KEYS_3DES_COUNT) 
+               if(keyNo >= KEYS_3DES_COUNT) 
                        errors = true;
        }
 
Impressum, Datenschutz