]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdhf14a.c
FIX: Coverity, unintended sign extention, CID #121363, (numbits << 16) becomes...
[proxmark3-svn] / client / cmdhf14a.c
index 6d94d33b4fc714b4e7a540b4fcab2dbdd0941d6b..ea2224488f9b13e82a14343459da784cbe5a214e 100644 (file)
@@ -735,7 +735,7 @@ int CmdHF14ACmdRaw(const char *cmd) {
        // Max buffer is USB_CMD_DATA_SIZE
        datalen = (datalen > USB_CMD_DATA_SIZE) ? USB_CMD_DATA_SIZE : datalen;
                
-    c.arg[1] = (datalen & 0xFFFF) | (numbits << 16);
+    c.arg[1] = (datalen & 0xFFFF) | (uint32_t)(numbits << 16);
     memcpy(c.d.asBytes,data,datalen);
 
        clearCommandBuffer();
Impressum, Datenschutz