FIX: if receiving array isnt large enough, previously this will smash the stack..

This commit is contained in:
iceman1001 2017-12-02 20:45:53 +01:00
commit b89b3399dc
6 changed files with 57 additions and 26 deletions

View file

@ -202,7 +202,8 @@ int usage_lf_em4x05_info(void) {
// Construct the graph for emulating an EM410X tag
void ConstructEM410xEmulGraph(const char *uid,const uint8_t clock) {
int i, n, j, binary[4], parity[4];
int i, j, binary[4], parity[4];
uint32_t n;
/* clear our graph */
ClearGraph(0);