mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-14 02:26:59 -07:00
@iceman1001 s coverity scan fixes
This commit is contained in:
parent
2b3af97df2
commit
e6432f0579
7 changed files with 13 additions and 16 deletions
|
@ -1892,7 +1892,7 @@ 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 < n; j++) {
|
||||
uint8_t sample = getByte(bits_per_sample, &bout);
|
||||
GraphBuffer[j] = ((int) sample )- 128;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue