X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/9bea179a71188589f8e642f615177a108cea8d55..f81c82c342ce9d6131582039d22533ba1802dbfc:/winsrc/command.cpp diff --git a/winsrc/command.cpp b/winsrc/command.cpp index 5af6c709..44e0326b 100644 --- a/winsrc/command.cpp +++ b/winsrc/command.cpp @@ -331,7 +331,7 @@ static void CmdEM4x50read(char *str) /* skip over the remainder of the LW */ skip += tmpbuff[i+1]+tmpbuff[i+2]; - while(GraphBuffer[skip] > low) + while(skip < MAX_GRAPH_TRACE_LEN && GraphBuffer[skip] > low) ++skip; skip += 8;