]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdlft55xx.c
added the changes from PM3 master.
[proxmark3-svn] / client / cmdlft55xx.c
index 78d90e7cda17ee9f80f25daa030ce0e8bff91d29..6ea9d2d3a575beff7868050ab5a298284abc01b6 100644 (file)
@@ -468,6 +468,9 @@ uint32_t PackBits(uint8_t start, uint8_t len, uint8_t* bits){
        \r
        int i = start;\r
        int j = len-1;\r
+       if (len > 32) {\r
+               return 0;\r
+       }\r
        uint32_t tmp = 0;\r
        for (; j >= 0; --j, ++i){\r
                tmp     |= bits[i] << j;\r
Impressum, Datenschutz