mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-12 11:08:29 +08:00
Fix data shiftgraphzero corrupting end of GraphBuffer
This commit is contained in:
parent
993728072a
commit
15f0fef555
1 changed files with 1 additions and 4 deletions
|
@ -928,9 +928,6 @@ static int CmdGraphShiftZero(const char *Cmd) {
|
||||||
sscanf(Cmd, "%i", &shift);
|
sscanf(Cmd, "%i", &shift);
|
||||||
|
|
||||||
for (size_t i = 0; i < GraphTraceLen; i++) {
|
for (size_t i = 0; i < GraphTraceLen; i++) {
|
||||||
if (i + shift >= GraphTraceLen)
|
|
||||||
shiftedVal = GraphBuffer[i];
|
|
||||||
else
|
|
||||||
shiftedVal = GraphBuffer[i] + shift;
|
shiftedVal = GraphBuffer[i] + shift;
|
||||||
|
|
||||||
if (shiftedVal > 127)
|
if (shiftedVal > 127)
|
||||||
|
|
Loading…
Reference in a new issue