From: d18c7db <d18c7db@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
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://cvs.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;