]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmddata.c
BUGS: Coverty Scan, fixes some memory bugs
[proxmark3-svn] / client / cmddata.c
index 556ede06b5687f150187ec4162b41e2c0e107548..a743089463e8b09c35a8b61fcd91e09551b721cd 100644 (file)
@@ -1892,7 +1892,8 @@ int getSamples(const char *Cmd, bool silent)
                PrintAndLog("Unpacking...");
                BitstreamOut bout = { got, bits_per_sample * n,  0};
                int j =0;
-               for (j = 0; j * bits_per_sample < n * 8 && j < sizeof(GraphBuffer); j++) {
+               //for (j = 0; j * bits_per_sample < n * 8 && j < sizeof(GraphBuffer); j++) {
+                       for (j = 0; j * bits_per_sample < n * 8 && j < n; j++) {
                        uint8_t sample = getByte(bits_per_sample, &bout);
                        GraphBuffer[j] = ((int) sample )- 128;
                }
Impressum, Datenschutz