]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - winsrc/command.cpp
fix crash in client when no buffer is loaded
[proxmark3-svn] / winsrc / command.cpp
index 5af6c709c61aff22383b470838c4c806d3580681..44e0326b41c0d2b7cf2a221b9f7e2ee0d5504083 100644 (file)
@@ -331,7 +331,7 @@ static void CmdEM4x50read(char *str)
 \r
        /* skip over the remainder of the LW */\r
        skip += tmpbuff[i+1]+tmpbuff[i+2];\r
-       while(GraphBuffer[skip] > low)\r
+       while(skip < MAX_GRAPH_TRACE_LEN && GraphBuffer[skip] > low)\r
                ++skip;\r
        skip += 8;\r
 \r
Impressum, Datenschutz