fix wrong copying when skipping sector trailers
This commit is contained in:
1 parent
3e293b4bc8
commit
ed555be180
1 file changed
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user