FIX: 'standalone mode colinrun' - buffer overrun (thanks @angelsl)

1aa974fc70
This commit is contained in:
Chris 2018-11-14 09:05:08 +01:00
commit bac3ad077e

View file

@ -469,8 +469,8 @@ failtag:
else else
{ {
/* BRACE YOURSELF : AS LONG AS WE TRAP A KNOWN KEY, WE STOP CHECKING AND ENFORCE KNOWN SCHEMES */ /* BRACE YOURSELF : AS LONG AS WE TRAP A KNOWN KEY, WE STOP CHECKING AND ENFORCE KNOWN SCHEMES */
// uint8_t tosendkey[12]; // uint8_t tosendkey[13];
char tosendkey[12]; char tosendkey[13];
num_to_bytes(key64, 6, foundKey[type][sec]); num_to_bytes(key64, 6, foundKey[type][sec]);
cjSetCursRight(); cjSetCursRight();
DbprintfEx(FLAG_NOLOG, "SEC: %02x ; KEY : %012" PRIx64 " ; TYP: %i", sec, key64, type); DbprintfEx(FLAG_NOLOG, "SEC: %02x ; KEY : %012" PRIx64 " ; TYP: %i", sec, key64, type);