From 877e5c6b701f73a57ceea87362ebbb7e87f32641 Mon Sep 17 00:00:00 2001 From: team-orangeBlue <63470411+team-orangeBlue@users.noreply.github.com> Date: Sat, 11 Apr 2026 00:57:28 +0300 Subject: [PATCH] bugfix #2 oops #2 Signed-off-by: team-orangeBlue <63470411+team-orangeBlue@users.noreply.github.com> --- client/src/cmdhfmfp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/cmdhfmfp.c b/client/src/cmdhfmfp.c index 3ca9d495c..47718c363 100644 --- a/client/src/cmdhfmfp.c +++ b/client/src/cmdhfmfp.c @@ -1201,7 +1201,7 @@ static int mfp_analyse_st_block(uint8_t blockno, uint8_t *block, bool force) { if (mfReadOnlyAccessConditions(foo, &block[6])) { // WARNING: Sectors 33+ assume ACLs apply to groups of 4 blocks, not 1 block. // The code as-is is bugged and actually wastes iterations. If you have 16 blocks, it'll run all 16 but only error out like it's a 4-block sector. - if (blockno<127) + if (blockno<128) PrintAndLogEx(WARNING, "Strict ReadOnly Access Conditions on block " _YELLOW_("%u") " detected", blockno - bar + 1 + foo); else PrintAndLogEx(WARNING, "Strict ReadOnly Access Conditions on blocks " _YELLOW_("%u-%u") " detected", blockno - bar*4 + 1 + foo*5, blockno - bar*4 + 1 + foo*5 + 4);