From bac3ad077e9afcef280f5949563f1e0eca832565 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 14 Nov 2018 09:05:08 +0100 Subject: [PATCH] FIX: 'standalone mode colinrun' - buffer overrun (thanks @angelsl) https://github.com/angelsl/proxmark3/commit/1aa974fc705fa98023b5ede677cf6a3e67cdaf4d --- armsrc/Standalone/hf_colin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/armsrc/Standalone/hf_colin.c b/armsrc/Standalone/hf_colin.c index c91c05766..31519080a 100644 --- a/armsrc/Standalone/hf_colin.c +++ b/armsrc/Standalone/hf_colin.c @@ -469,8 +469,8 @@ failtag: else { /* BRACE YOURSELF : AS LONG AS WE TRAP A KNOWN KEY, WE STOP CHECKING AND ENFORCE KNOWN SCHEMES */ - // uint8_t tosendkey[12]; - char tosendkey[12]; + // uint8_t tosendkey[13]; + char tosendkey[13]; num_to_bytes(key64, 6, foundKey[type][sec]); cjSetCursRight(); DbprintfEx(FLAG_NOLOG, "SEC: %02x ; KEY : %012" PRIx64 " ; TYP: %i", sec, key64, type);