mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
fix wrong copying when skipping sector trailers
This commit is contained in:
parent
3e293b4bc8
commit
ed555be180
1 changed files with 2 additions and 2 deletions
|
@ -1467,12 +1467,12 @@ int convert_mfc_2_arr(uint8_t *in, uint16_t ilen, uint8_t *out, uint16_t *olen)
|
|||
|
||||
if (mfIsSectorTrailer(blockno) == false) {
|
||||
memcpy(out, in, MFBLOCK_SIZE);
|
||||
out += MFBLOCK_SIZE;
|
||||
*olen += MFBLOCK_SIZE;
|
||||
}
|
||||
blockno++;
|
||||
out += MFBLOCK_SIZE;
|
||||
in += MFBLOCK_SIZE;
|
||||
ilen -= MFBLOCK_SIZE;
|
||||
*olen += MFBLOCK_SIZE;
|
||||
}
|
||||
return PM3_SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue