]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - common/lfdemod.c
ADD: cmdlf autocorrelations, also gives a hint to how many bytes the possible correl...
[proxmark3-svn] / common / lfdemod.c
index 12f380d586f15225f1f2d4efdbb3834b170af2db..5b90f1c4a2eef6d20942c5e685085a9132e7c348 100644 (file)
@@ -142,6 +142,7 @@ uint8_t Em410xDecode(uint8_t *BitStream, size_t *size, size_t *startIdx, uint32_
   for (uint8_t extraBitChk=0; extraBitChk<5; extraBitChk++){
     errChk = preambleSearch(BitStream+extraBitChk+*startIdx, preamble, sizeof(preamble), size, startIdx);
     if (errChk == 0) return 0;
+       if (*size<64) return 0;
     if (*size>64) FmtLen = 22;
     idx = *startIdx + 9;
     for (i=0; i<FmtLen; i++){ //loop through 10 or 22 sets of 5 bits (50-10p = 40 bits or 88 bits)
Impressum, Datenschutz