From: d18c7db Date: Tue, 28 Jul 2009 01:21:24 +0000 (+0000) Subject: fix crash in client when no buffer is loaded X-Git-Tag: v1.0.0~537 X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/f81c82c342ce9d6131582039d22533ba1802dbfc fix crash in client when no buffer is loaded --- 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;